@Override
 @Transactional
 public void deleteResourceRole(String resourceId, String roleId) {
   final ResourceEntity entity = resourceDao.findById(resourceId);
   final RoleEntity roleEntity = roleDao.findById(roleId);
   entity.remove(roleEntity);
   resourceDao.save(entity);
 }
 @Override
 @Transactional
 public void deleteResourceGroup(String resourceId, String groupId) {
   final ResourceEntity entity = resourceDao.findById(resourceId);
   final GroupEntity groupEntity = groupDao.findById(groupId);
   entity.remove(groupEntity);
   resourceDao.save(entity);
 }