VelocityContext velocityContext;
StringWriter result = new StringWriter();
try {
velocityContext = new VelocityContext(model);
velocityEngine.mergeTemplate("eu/planets_project/tb/"+templateName+".vm", velocityContext, result);
} catch (VelocityException ex) {
log.error("Mailing failed! :: "+ex);
return;
} catch (RuntimeException ex) {
log.error("Mailing failed! :: "+ex);