context.setProperty("model", model);
context.setProperty("item", item);
context.setProperty("overwriteMode", context.getOverwriteMode());
context.setProperty("settings", context.getGeneratorSettings());
TemplateEngine engine = new TemplateEngine();
engine.setOutputDir(context.getOutputRootDir());
engine.setProperties(context.getProperties());
engine.setClassLoader(getClassLoader());
TemplateEngineResult result = engine.processTemplate(tn, null);
if (result == null)
{
// No files generated, but also no error, so create a dummy
result = new TemplateEngineResult();
}