@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @ConditionalOnMissingBean(name = CasServerProfileRegistrar.BEAN_NAME)
        public CasServerProfileRegistrar casServerProfileRegistrar(
            final CasConfigurationProperties casProperties,
            final ConfigurableApplicationContext applicationContext,
            @Qualifier("discoveryProfileAvailableAttributes") final BeanContainer<String> discoveryProfileAvailableAttributes,
            @Qualifier("authenticationEventExecutionPlan") final AuthenticationEventExecutionPlan authenticationEventExecutionPlan) {
            return new DefaultCasServerProfileRegistrar(casProperties, discoveryProfileAvailableAttributes.toSet(),
                authenticationEventExecutionPlan, applicationContext);
        }
This is {@link CasDiscoveryProfileAutoConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-discovery-profile/src/main/java/org/apereo/cas/config/CasDiscoveryProfileAutoConfiguration.java