@Bean
        @ConditionalOnMissingBean(name = "yamlServiceRegistryExecutionPlanConfigurer")
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public ServiceRegistryExecutionPlanConfigurer yamlServiceRegistryExecutionPlanConfigurer(
            final CasConfigurationProperties casProperties,
            @Qualifier("yamlServiceRegistry")
            final ServiceRegistry yamlServiceRegistry) {
            val registry = casProperties.getServiceRegistry().getYaml();
            return plan -> FunctionUtils.doIfNotNull(registry.getLocation(),
                input -> plan.registerServiceRegistry(yamlServiceRegistry));
        }
This is {@link CasYamlServiceRegistryAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-yaml-service-registry/src/main/java/org/apereo/cas/config/CasYamlServiceRegistryAutoConfiguration.java