}
OMR omr = new OMR();
List<OMRService> omrServices = omr.searchServicesByQuery(null);
JsonFormatter jsonFormatter = new JsonFormatter();
jsonFormatter.setRootElement("services");
String json = jsonFormatter.convert(omrServices);
out.println(callback+"("+json+");");
} catch (XmlException ex) {
Logger.getLogger(OMRServlet.class.getName()).log(Level.SEVERE, null, ex);
out.println("{error: 'Error retrieving services'}");