Added getTemplatePart method