return Response.ok(new StreamingOutputMarshaller(app, queryResults, hh.getAcceptableMediaTypes())).build();
}
@SuppressWarnings({ "rawtypes" })
private SingleResultQueryList populateReportQueryResponse(Object result, List<ReportItem> reportItems) {
SingleResultQueryList response = new SingleResultQueryList();
List<JAXBElement> fields = createShellJAXBElementList(reportItems, result);
if (fields == null) {
return null;
}
response.setFields(fields);
return response;
}