@Override public String handleCall(WebRequest wr, ParamsMap params) { ModelRequestContext mrc = getMRC(params); mrc = new ModelRequestContext(mrc.hoster, Model.ME_OWNER, mrc.lvHandler); try { if (wr.httpCommand.equals(HttpConstants.HTTP_COMMAND_POST)) { return DatabaseAccess.getAdvisories(mrc, parser.parseJSON(wr.getBodyAsString())); } // else } catch (Exception ex) { return EndpointHelper.logAccessExceptionAndPrepareErrorMessage( AdvisoryRequestHandler.class, ex, wr, "advisoryrequest", "unknown"); } return EndpointHelper.logAccessErrorAndPrepareErrorMessage( AdvisoryRequestHandler.class, "unable to handle call:" + wr.fname, "unknown", "advisoryrequest"); }