}
else {
throw new RuntimeException();
}
PlanJSONDumpGenerator jsonGen = new PlanJSONDumpGenerator();
StringWriter string = new StringWriter(1024);
PrintWriter pw = null;
try {
pw = new PrintWriter(string);
jsonGen.dumpPactPlanAsJSON(previewPlan, pw);
} finally {
pw.close();
}
return string.toString();
}