@Override
    public <T> T newObjectInstance(final Resource resource, final Class[] ctorParameters, final Object[] args, final Class<T> clazz) {
        return ScriptingUtils.getObjectInstanceFromGroovyResource(resource, ctorParameters, args, clazz);
    }
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