code: public static void invokeMain(Class<?> mainClass, List<String> args)
  			throws Exception
  	{
  		Method mainMethod = mainClass.getMethod("main", Class.forName("[Ljava.lang.String;"));
  
  		mainMethod.invoke(null, convertToArray(args));
  	}
docs: <p>invokeMain.</p>
  
  @param mainClass a {@link java.lang.Class} object.
  @param args a {@link java.util.List} object.
  @throws java.lang.Exception if any.