throw new CodeGenException("Could not read json correctly " + child.getAbsolutePath(),e);
}
testSpec.put(childName.substring(0, childName.indexOf(".json")),spec);
}
}
final ProctorSpecification proctorSpecification = new ProctorSpecification();
proctorSpecification.setTests(testSpec);
proctorSpecification.setProvidedContext(providedContext);
final File output = new File(targetDir, name);
try {
OBJECT_MAPPER.defaultPrettyPrintingWriter().writeValue(output, proctorSpecification);
} catch (IOException e) {