Resolve method in TemplateService has been made virtual

Made Resolve method virtual to allow to override it.