code: public static <T> T executeGroovyScript(final Resource groovyScript,
                                              final Object[] args, final Class<T> clazz,
                                              final boolean failOnError) {
          return executeGroovyScript(groovyScript, "run", args, clazz, failOnError);
      }
docs: Execute groovy script via run object.
  
  @param <T>          the type parameter
  @param groovyScript the groovy script
  @param args         the args
  @param clazz        the clazz
  @param failOnError  the fail on error
  @return the object