UUID id = UUID.fromString(permissionId);
Permission p = db.getPermission(id);
if (p==null || !role.hasPermission(p)) {
getResponse().setStatus(Status.CLIENT_ERROR_NOT_FOUND);
} else {
role.removePermission(p);
getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
}
return null;
} catch (SQLException ex) {
getContext().getLogger().log(Level.SEVERE,"Error deleting permission "+permissionId,ex);