code: public static Object invokeStaticMethod(final Class<?> cls, final String methodName,
              final boolean throwException) throws IllegalArgumentException {
          if (cls == null || methodName == null) {
              if (throwException) {
                  throw new NullPointerException();
              } else {
                  return null;
              }
          }
          return invokeMethod(cls, null, methodName, false, null, null, throwException);
      }
docs: Invoke the named static method. If an exception is thrown while trying to call the method, and throwException
  is true, then IllegalArgumentException is thrown wrapping the cause, otherwise this will return null. If
  passed a null class reference, returns null unless throwException is true, then throws
  IllegalArgumentException.
  
  @param cls
  The class.
  @param methodName
  The method name.
  @param throwException
  Whether to throw an exception on failure.
  @return The result of the method invocation.
  @throws IllegalArgumentException
  If the method could not be invoked.