@Override
    public ExecutableCompiledScript fromResource(final Resource resource, final boolean watchResource) {
        return new WatchableGroovyScriptResource(resource, watchResource);
    }
This is {@link GroovyExecutableCompiledScriptFactory}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-scripting/src/main/java/org/apereo/cas/util/scripting/GroovyExecutableCompiledScriptFactory.java