@Override
  protected void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws ServletException, IOException {

    DistributedTable table = getTable(req, resp);
    if (table == null) {
      return;
    }

    int diff;
    try {
      table.useTransaction(sessionID);
      diff = table.rollback();
      table.removeTransaction(sessionID);
    } catch (IllegalStateException e) {
      resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e.getMessage());
      return;
    } finally {
      manager.deleteTableByID(sessionID);
    }

    resp.setStatus(HttpServletResponse.SC_OK);

    resp.setContentType("text/plain");
    resp.setCharacterEncoding("UTF8");
    resp.getWriter().println("diff=" + diff);
  }