@ConditionalOnMissingBean(name = "gitSamlRegisteredServiceRepositoryScheduler")
    @Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @Lazy(false)
    public Runnable gitSamlRegisteredServiceRepositoryScheduler(
        @Qualifier("gitSamlRegisteredServiceRepositoryInstance")
        final GitRepository gitSamlRegisteredServiceRepositoryInstance,
        final ConfigurableApplicationContext applicationContext) {
        return BeanSupplier.of(Runnable.class)
            .when(BeanCondition.on("cas.authn.saml-idp.metadata.git.schedule.enabled")
                .isTrue().given(applicationContext.getEnvironment()))
            .supply(() -> new GitSamlRegisteredServiceRepositoryScheduler(gitSamlRegisteredServiceRepositoryInstance))
            .otherwiseProxy()
            .get();
    }
This is {@link SamlIdPGitRegisteredServiceMetadataConfiguration}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-saml-idp-metadata-git/src/main/java/org/apereo/cas/config/SamlIdPGitRegisteredServiceMetadataConfiguration.java