private void compileScriptResource(final Resource script) {
        this.compiledScript = ScriptingUtils.parseGroovyScript(script, failOnError);
    }
Execute.

@param <T>         the type parameter
@param methodName  the method name
@param clazz       the clazz
@param failOnError the fail on error
@param args        the args
@return the t
core/cas-server-core-scripting/src/main/java/org/apereo/cas/util/scripting/WatchableGroovyScriptResource.java