code: private static OptimizedPlan getOptimizedPlan(Optimizer compiler, JobWithJars prog, int parallelism)
  			throws CompilerException, ProgramInvocationException {
  		return getOptimizedPlan(compiler, prog.getPlan(), parallelism);
  	}
docs: Creates the optimized plan for a given program, using this client's compiler.
  
  @param prog The program to be compiled.
  @return The compiled and optimized plan, as returned by the compiler.
  @throws CompilerException Thrown, if the compiler encounters an illegal situation.