try {
GroovyScriptBuilder compiler = new GroovyScriptBuilder(templateId, templateName, templateText);
this.script = compiler.build();
} catch (TemplateCompilationException ex) {
Logger log = LoggerFactory.getLogger(GroovyTemplate.class);
log.error(ex.getMessage(), ex);
}
}
return this.script;
}
}