return Response.status(Status.NOT_FOUND).type(StreamingOutputMarshaller.getResponseMediaType(hh)).build();
}
Map<String, String> discriminators = getMatrixParameters(ui, persistenceUnit);
Object id = IdHelper.buildId(app, type, key);
Object entity = app.findAttribute(discriminators, type, id, getQueryParameters(ui), attribute);
if (entity == null) {
JPARSLogger.fine("jpars_could_not_entity_for_attribute", new Object[] { type, key, attribute, persistenceUnit });
return Response.status(Status.NOT_FOUND).type(StreamingOutputMarshaller.getResponseMediaType(hh)).build();
}