Rename getEmailTemplateName to getTemplateName