@Override
    public void doInitialize() {
        FunctionUtils.doAndHandle(__ -> {
            val resource = casProperties.getWebflow().getGroovy().getLocation();
            if (resource != null) {
                val args = new Object[]{this, applicationContext, LOGGER};
                LOGGER.debug("Executing Groovy script [{}] to auto-configure the webflow context", resource);
                val scriptFactory = ExecutableCompiledScriptFactory.getExecutableCompiledScriptFactory();
                try (val script = scriptFactory.fromResource(resource)) {
                    script.execute(args, Object.class, true);
                }
            }
        });
    }
This is {@link GroovyWebflowConfigurer}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/GroovyWebflowConfigurer.java