public static <T> T executeGroovyScript(final GroovyObject groovyObject,
                                            final Object[] args, final Class<T> clazz,
                                            final boolean failOnError) {
        return executeGroovyScript(groovyObject, "run", args, clazz, failOnError);
    }
public static < T > T executeGroovyScript ( final GroovyObject groovyObject , final Object [ ] args , final Class < T > clazz , final boolean failOnError ) { return executeGroovyScript ( groovyObject , "run" , args , clazz , failOnError ) ; }
Execute groovy script.

@param <T>          the type parameter
@param groovyObject the groovy object
@param args         the args
@param clazz        the clazz
@param failOnError  the fail on error
@return the result