TemplateWrapper getter

Added the call of getTemplateWrapper() instead of directly passing the protected var.