code: public static Object runMethod(Object object, String method, Object... args) throws JException
    {
      try
      {
        final Method m = object.getClass().getMethod(method);
  
        return m.invoke(object, args);
      }
      catch (Exception e)
      {
        throw new JException(e);
      }
    }
docs: Use reflection to run/execute the method represented by "method",
  on the object {@code object}, given the list of {@code args}.
  
  @param object - The object to execute the method against
  @param method - The method name
  @param args - All the arguments for this method
  @return Object - The value of executing this method, if any
  @throws JException