@Before
 public void setUp() {
   RoleAndPermissionServiceMockImpl impl = new RoleAndPermissionServiceMockImpl();
   impl.setGroupService(new GroupServiceMockImpl());
   this.roleService = impl;
   this.permissionService = impl;
   this.loadNeededTemplates();
 }
 protected Template createTemplate(
     String namespaceCode, String name, String description, String kimTypeId) {
   // TODO: refactor if RICE adds Create/update methods for templates
   RoleAndPermissionServiceMockImpl impl = (RoleAndPermissionServiceMockImpl) this.roleService;
   Template.Builder bldr = Template.Builder.create(namespaceCode, name, kimTypeId);
   bldr.setDescription(description);
   bldr.setActive(true);
   Template template = impl.createTemplate(bldr.build());
   return template;
 }