}
public String processTemplateCode(final String code) {
Validate.notNull(code, "Code must be non-null");
ITemplateResolver templateResolver = new MemoryTemplateResolver(code, templateMode);
SpringTemplateEngine templateEngine = new SpringTemplateEngine();
templateEngine.setMessageResolver(messageResolver);
templateEngine.setTemplateResolver(templateResolver);
templateEngine.initialize();
return templateEngine.process(TEMPLATE_NAME, context);
}