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();
}