code: public void addSession(String id, Session session) {
      synchronized (session) {
        SessionSchedulable schedulable =
          new SessionSchedulable(session, getType());
        idToSession.put(id, schedulable);
      }
    }
docs: Add a session to the pool
  @param id the id of the session
  @param session the session to add to the pool