A simple test follows: ERROR [freemarker.template.Template]: message is not a TemplateHashModel, it's a freemarker.template.SimpleScalar.