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

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