Added getTextContent to TemplateService