final int MAX_RESPONSE_LOG_LENGTH = 1024;
protected Object handle(String url, boolean insertOrUpdate, HttpServletRequest request, HttpServletResponse response) {
ParsedRequest req = new ParsedRequest(url, insertOrUpdate, request, response);
if (req.db == null) req.db = "_metadata";
RequestAcceptor acceptor = repo.getRequestAcceptor("_metadata");
if (! acceptor.accept(req) ) {
throw new ApiException("PermissionDenied","Permission denied");
// if (! req.response.isCommitted()) {
// try {
// req.response.sendError(HttpServletResponse.SC_FORBIDDEN);
// return;