try {
ensureTemplateManager();
loadTemplate();
templateManager.put("resolvables", this.resolvableColl);
putObjectsIntoTemplateManager(this.getAdditionalDeployableObjects());
GenericConfiguration variables = (GenericConfiguration) config.get(VARIABLES_KEY);
if (variables != null) {
putObjectsIntoTemplateManager(variables.getProperties());
}
String encoding = this.getResponseEncoding();
templateManager.put("encoding", encoding);
templateManager.put("tools", tools);
String output = templateManager.render(template.getKey(), template.getSource());