LOG.info("Query: " + query);
}
OCQueryResultSelection selection = template.queryForSelection(query);
MarshalHelper marshalHelper = new MarshalHelper(app);
String xml = marshalHelper.selection2xml(selection, Integer.valueOf(mode));
return Response.ok(xml).build();
} catch (Exception e) {
throw new WebApplicationException(e);
}
}