code: public int runAndWaitProcessExitCode(String id,
  			Class<?> klass, String[] javaArguments, String[] processArguments)
  			throws IOException, InterruptedException {
  		Process process = startProcess(id, klass, javaArguments, processArguments,
  				false);
  		process.waitFor();
  		return process.exitValue();
  	}
docs: Runs process with arguments based on a specified class in a separate VM.
  Waits while process is working and returns exit code after process
  finished.
  @param id TODO
  @param klass
  of type Class
  @param javaArguments
  arguments for java
  @param processArguments
  arguments for process
  
  @return int
  @throws IOException
  when
  @throws InterruptedException
  when