// dump the job to a JSON file
String planName = uid + ".json";
File jsonFile = new File(this.planDumpDirectory, planName);
PlanJSONDumpGenerator jsonGen = new PlanJSONDumpGenerator();
jsonGen.setEncodeForHTML(true);
jsonGen.dumpOptimizerPlanAsJSON(optPlan, jsonFile);
// submit the job only, if it should not be suspended
if (!suspend) {
try {
client.run(program, optPlan, false);