@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public View cas2ProxySuccessView(
            @Qualifier(CasProtocolViewFactory.BEAN_NAME_MUSTACHE_VIEW_FACTORY)
            final CasProtocolViewFactory casProtocolMustacheViewFactory,
            final CasConfigurationProperties casProperties,
            final ConfigurableApplicationContext applicationContext) {
            return BeanSupplier.of(View.class)
                .when(CONDITION_PROXY_AUTHN.given(applicationContext.getEnvironment()))
                .supply(() -> casProtocolMustacheViewFactory.create(applicationContext,
                    casProperties.getView().getCas2().getProxy().getSuccess(), APPLICATION_XML_VALUE))
                .otherwiseProxy()
                .get();
        }
This is {@link CasValidationAutoConfiguration}.

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