File exceptionDestDir = new File(realDestDir, EXCEPTION_PACKAGE);
exceptionDestDir.mkdirs();
File outFile = new File(exceptionDestDir, outputClassName + "Exception" + EXTENSION);
VelocityRenderer renderer = new VelocityRenderer(MESSAGE_EXCEPTION_CLASS_TEMPLATE);
initContext(renderer, root, message);
renderer.addToContext("message", message);
renderer.addToContext("exception", outputClassName + "Exception");
FileWriter writer = new FileWriter(outFile);
renderer.renderToWriter(writer);
writer.flush();
writer.close();
log("Output: " + outFile, Project.MSG_INFO);
}