added new methods to ITemplate and ITemplateManager