@Bean
        @ConditionalOnMissingBean(name = "corsHttpWebRequestConfigurationSource")
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public CorsConfigurationSource corsHttpWebRequestConfigurationSource(
            final ConfigurableApplicationContext applicationContext,
            final CasConfigurationProperties casProperties,
            @Qualifier(ArgumentExtractor.BEAN_NAME) final ArgumentExtractor argumentExtractor,
            @Qualifier(ServicesManager.BEAN_NAME) final ServicesManager servicesManager) {
            return BeanSupplier.of(CorsConfigurationSource.class)
                .when(CONDITION.given(applicationContext.getEnvironment()))
                .supply(() -> new RegisteredServiceCorsConfigurationSource(casProperties, servicesManager, argumentExtractor))
                .otherwiseProxy()
                .get();
        }
This is {@link CasFiltersConfiguration} that attempts to create Spring-managed beans
backed by external configuration.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-webconfig/src/main/java/org/apereo/cas/config/CasFiltersConfiguration.java