throws PermissionAccessException {
validateNullEntries(right, entity, resource, right.getGroup());
AssignedRightsGroup aRightsGroup = dbHandler.getAssociatedGroup(resource, right.getGroup());
if (aRightsGroup == null) {
throw new PermissionAccessException("Right group is not associated with the specified resource type");
}
Permission permissionMaster = getPermissionMaster(right, entity, resource);
if (permissionMaster == null) {
permissionMaster = new Permission();