public static <T> T executeGroovyShellScript(final Script script,
                                                 final Class<T> clazz) {
        return executeGroovyShellScript(script, new HashMap<>(), clazz);
    }
Execute groovy shell script t.

@param <T>    the type parameter
@param script the script
@param clazz  the clazz
@return the t
core/cas-server-core-scripting/src/main/java/org/apereo/cas/util/scripting/ScriptingUtils.java