@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public View cas2ServiceFailureView(
            final ConfigurableApplicationContext applicationContext,
            @Qualifier(CasProtocolViewFactory.BEAN_NAME_MUSTACHE_VIEW_FACTORY)
            final CasProtocolViewFactory casProtocolMustacheViewFactory,
            final CasConfigurationProperties casProperties) throws Exception {
            return casProtocolMustacheViewFactory.create(applicationContext,
                casProperties.getView().getCas2().getFailure(), APPLICATION_XML_VALUE);
        }
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