@Bean
    public InitializingBean casConfigurationWatchService(
        final ConfigurableApplicationContext applicationContext) {
        return BeanSupplier.of(InitializingBean.class)
            .when(BeanCondition.on("cas.events.core.track-configuration-modifications").isTrue().given(applicationContext.getEnvironment()))
            .supply(() -> new CasConfigurationWatchService(applicationContext))
            .otherwiseProxy()
            .get();
    }
This is {@link CasCoreConfigurationWatchAutoConfiguration}.

@author Misagh Moayyed
@since 6.5.0
core/cas-server-core-configuration/src/main/java/org/apereo/cas/config/CasCoreConfigurationWatchAutoConfiguration.java