Add method setTemplateFile()