@ConditionalOnMissingBean(name = "proxy10Handler")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public ProxyHandler proxy10Handler(final ConfigurableApplicationContext applicationContext) throws Exception {
            return BeanSupplier.of(ProxyHandler.class)
                .when(CONDITION_PROXY_AUTHN.given(applicationContext.getEnvironment()))
                .supply(Cas10ProxyHandler::new)
                .otherwiseProxy()
                .get();
        }
This is {@link CasCoreValidationAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
core/cas-server-core-validation/src/main/java/org/apereo/cas/config/CasCoreValidationAutoConfiguration.java