@ConditionalOnMissingBean(name = "restfulPasswordSynchronizationAuthenticationPostProcessorExecutionPlanConfigurer")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public AuthenticationEventExecutionPlanConfigurer restfulPasswordSynchronizationAuthenticationPostProcessorExecutionPlanConfigurer(
            @Qualifier("restfulPasswordSynchronizationAuthenticationPostProcessor")
            final AuthenticationPostProcessor restfulPasswordSynchronizationAuthenticationPostProcessor,
            final ConfigurableApplicationContext applicationContext) {
            return BeanSupplier.of(AuthenticationEventExecutionPlanConfigurer.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(() -> plan -> plan.registerAuthenticationPostProcessor(restfulPasswordSynchronizationAuthenticationPostProcessor))
                .otherwiseProxy()
                .get();
        }
This is {@link CasPasswordManagementAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-pm/src/main/java/org/apereo/cas/config/CasPasswordManagementAutoConfiguration.java