public String evalToString(String templateContent) throws Exception {
StringReader reader = new StringReader(templateContent);
Template template = new Template("test", reader, configuration);
Map<String, TemplateModel> data = new HashMap<String, TemplateModel>();
data.put("node", new NodeModel(node));
StringWriter writer = new StringWriter();
template.process(data, writer);
return writer.toString();
}