String htmlContent = obj.getStringValue("html"); String subject = evaluate(subjectContent, templateDocFullName, updatedVelocityContext, context); String msg = evaluate(txtContent, templateDocFullName, updatedVelocityContext, context); String html = evaluate(htmlContent, templateDocFullName, updatedVelocityContext, context);