t642: new service classes to support CRUD operation for templates