code: public void add(RequestHandler request) {
      lock.writeLock().lock();
      try {
        newSessionRequests.add(request);
      } finally {
        lock.writeLock().unlock();
      }
    }
docs: Adds a request handler to this queue.
  @param request the RequestHandler to add