code: private List<String> createCommandLineForProcess(Class<?> klazz,
  			String[] javaArguments, String[] processArguments) {
  		String javaHome = System.getProperty("java.home");
  		String javaBin = javaHome + File.separator + "bin" + File.separator
  				+ "java";
  		String classpath = System.getProperty("java.class.path");
  
  		List<String> argumentsList = new ArrayList<String>();
  		argumentsList.add(javaBin);
  		argumentsList.add("-cp");
  		argumentsList.add(classpath);
  
  		if (javaArguments != null && javaArguments.length > 0) {
  			argumentsList.addAll(Arrays.asList(javaArguments));
  		}
  
  		argumentsList.add(klazz.getCanonicalName());
  
  		if (processArguments != null && processArguments.length > 0) {
  			argumentsList.addAll(Arrays.asList(processArguments));
  		}
  
  		return argumentsList;
  	}
docs: Builds command line for starting java process based on specified
  arguments.
  
  @param klazz
  @param javaArguments
  of type String[]
  @param processArguments
  of type String[]
  @return List<String>