@Bean
        @Lazy(false)
        public CasApplicationReadyListener passwordManagementApplicationReady(
            final CasConfigurationProperties casProperties,
            @Qualifier(CommunicationsManager.BEAN_NAME)
            final ObjectProvider<CommunicationsManager> communicationsManager) {
            return event -> {
                val pm = casProperties.getAuthn().getPm();
                if (pm.getCore().isEnabled()) {
                    communicationsManager.getObject().validate();
                }
            };
        }
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