@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "ldapServiceRegistryMapper")
    public LdapRegisteredServiceMapper ldapServiceRegistryMapper(
        final ConfigurableApplicationContext applicationContext,
        final CasConfigurationProperties casProperties) {
        return BeanSupplier.of(LdapRegisteredServiceMapper.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> new DefaultLdapRegisteredServiceMapper(casProperties.getServiceRegistry().getLdap(),
                new RegisteredServiceJsonSerializer(applicationContext)))
            .otherwiseProxy()
            .get();
    }
This is {@link CasLdapServiceRegistryAutoConfiguration}.

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