JSONArray emptyListJSON = new JSONArray();
JSONObject results = new JSONObject();
results.put("message", message);
results.put("results", emptyListJSON);
results.put("totalCount", emptyListJSON.length());
writeBackToClient( new JSONSuccess( results ) );
} catch (IOException e) {
throw new SpagoBIServiceException(SERVICE_NAME, "Impossible to write back the responce to the client", e);
} catch (JSONException e) {
throw new SpagoBIServiceException(SERVICE_NAME, "Cannot serialize objects into a JSON object", e);
}