@Override
public final void emit(EmitContext context, TemplateModel<ASTNode.Template> templateModel) throws TemplateException, IOException {
GroovyTemplateEmitter emitter = new GroovyTemplateEmitter(templateModel.getPath().getName());
EmitPhase tcc = new EmitPhase(context);
tcc.emit(emitter, templateModel.getModel());
Path.Absolute path = templateModel.getPath();
path = path.as(path.getRawName() + "_", "groovy");
context.createResource(path, emitter.toString());
}
}