if (callback != null) {
printWriter.print(callback + "(");
}
// init query
query.setReturnables(new CoreQueryables(context).getFull());
toSearchCriteria(request, context, query);
feedWriter.write(JsonSearchEngine.createInstance().search(request, response, context, query));
if (callback != null) {
printWriter.print(")");
}
}else if (format == RestQueryServlet.ResponseFormat.dcat) {
String callback = request.getParameter("callback");
if (callback != null) {
printWriter.print(callback + "(");
}
// The following part of the code has been disabled since DCAT content
// is being cached.
query.setReturnables(new CoreQueryables(context).getFull());
toSearchCriteria(request, context, query);
feedWriter.write(DcatJsonSearchEngine.createInstance().search(request, response, context, query));
if (callback != null) {
printWriter.print(")");