* The successCallBack may return IPromise<void> for when a $q.reject() needs to be returned@param template The template to usesetTemplateGroupsAsCommaSeperated(template: TemplateModel): void{
const templatesWithTotal = this.mappingService.validate<Te