@ConditionalOnMissingBean(name = "groovyCasWebflowAuthenticationExceptionHandler")
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        @ConditionalOnMissingGraalVMNativeImage
        public CasWebflowExceptionHandler<Exception> groovyCasWebflowAuthenticationExceptionHandler(
            final ConfigurableApplicationContext applicationContext,
            final CasConfigurationProperties casProperties) throws Exception {
            return BeanSupplier.of(CasWebflowExceptionHandler.class)
                .when(BeanCondition.on("cas.authn.errors.groovy.location").exists().given(applicationContext.getEnvironment()))
                .supply(() -> new GroovyCasWebflowAuthenticationExceptionHandler(
                    casProperties.getAuthn().getErrors().getGroovy().getLocation(), applicationContext))
                .otherwiseProxy()
                .get();
        }
This is {@link CasCoreWebflowConfiguration}.

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