static MethodInvokerResult execute(String target, String methodName, Object[] parameters) {
    try {
      // get the class
      Class targetClass = Class.forName(target);

      // invoke the method
      try {
        Class[] paramTypes;
        if (parameters == null) {
          paramTypes = new Class[0];

        } else {
          paramTypes = new Class[parameters.length];
          for (int i = 0; i < parameters.length; i++) {
            if (parameters[i] == null) {
              paramTypes[i] = null;

            } else {
              paramTypes[i] = parameters[i].getClass();
            }
          }
        }

        Method method = getMethod(targetClass, methodName, paramTypes);
        method.setAccessible(true);
        Object result = method.invoke(targetClass, parameters);
        return new MethodInvokerResult(result);

      } catch (InvocationTargetException e) {
        Throwable targetException = e.getTargetException();
        if (targetException == null) {
          return new MethodInvokerResult(null);

        } else {
          return new MethodInvokerResult(targetException);
        }
      }

    } catch (VirtualMachineError e) {
      SystemFailure.initiateFailure(e);
      throw e;

    } catch (Throwable t) {
      return new MethodInvokerResult(t);
    }
  }
Executes the given static method on the given class with the given parameters.
geode-dunit/src/main/java/org/apache/geode/test/dunit/internal/MethodInvoker.java