code: public void openSession(PrimaryBackupSession session) {
      sessions.put(session.sessionId().id(), session);
      listeners.forEach(l -> l.onOpen(session));
    }
docs: Adds a session to the sessions list.
  
  @param session The session to add.