in src/main/java/com/amazonaws/eclipse/simpleworkflow/asynchrony/freemarker/ActivitiesCodeGenerator.java [93:110]
private void generate(String className, String templateName) {
PrintWriter writer = fileCreator.createSourceFile(packageName, className);
try {
Template template = getConfiguration().getTemplate(templateName);
template.process(getRoot(), writer);
}
catch (IOException e) {
writer.println("Error loading template: " + templateName);
}
catch (TemplateException e) {
writer.println("Error processing template: " + templateName);
writer.println(e.getMessage());
}
writer.flush();
writer.close();
}