@Override
 public Role updateRole(Role r) {
   //        Set<OwnerPermission> newPermissions = new HashSet<OwnerPermission>();
   //        for (OwnerPermission incomingPerm : r.getPermissions()) {
   //            newPermissions.add(this.permCurator.findOrCreate(
   //                incomingPerm.getOwner(), incomingPerm.getAccess()));
   //        }
   //        r.getPermissions().clear();
   //        r.getPermissions().addAll(newPermissions);
   return roleCurator.merge(r);
 }
 @Override
 public void removeUserFromRole(Role role, User user) {
   role.removeUser(user);
   roleCurator.merge(role);
 }
 @Override
 public void addUserToRole(Role role, User user) {
   role.addUser(user);
   roleCurator.merge(role);
 }