public static <T> T executeGroovyScript(final Resource groovyScript,
                                            final String methodName,
                                            final Class<T> clazz) {
        return executeGroovyScript(groovyScript, methodName, ArrayUtils.EMPTY_OBJECT_ARRAY, clazz, false);
    }
public static < T > T executeGroovyScript ( final Resource groovyScript , final String methodName , final Class < T > clazz ) { return executeGroovyScript ( groovyScript , methodName , ArrayUtils . EMPTY_OBJECT_ARRAY , clazz , false ) ; }
Execute groovy script.

@param <T>          the type parameter
@param groovyScript the groovy script
@param methodName   the method name
@param clazz        the clazz
@return the t