"The quantity specified must be greater than zero " +
"and less than or equal to the total for this entitlement"));
}
}
else {
throw new NotFoundException(
i18n.tr("Entitlement with ID ''{0}'' could not be found.", id));
}
return Response.status(Response.Status.OK)
.type(MediaType.APPLICATION_JSON).entity(entitlements).build();