protected void buildGroovyAccessStrategyInstanceIfNeeded() {
        if (watchableScript == null) {
            FunctionUtils.doAndHandle(__ -> {
                val location = SpringExpressionLanguageValueResolver.getInstance().resolve(this.groovyScript);
                val groovyResource = ResourceUtils.getResourceFrom(location);
                val scriptFactory = ExecutableCompiledScriptFactory.getExecutableCompiledScriptFactory();
                watchableScript = scriptFactory.fromResource(groovyResource).setFailOnError(false);
            });
        }
    }
This is {@link GroovyRegisteredServiceAccessStrategy}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-services-api/src/main/java/org/apereo/cas/services/GroovyRegisteredServiceAccessStrategy.java