docs: private Session getOrCreateSession(SessionId sessionId) {
      Session session = sessions.get(sessionId);
      if (session == null) {
        session = new LocalSession(sessionId, name(), type(), null, service.serializer());
        sessions.put(session.sessionId(), session);
        service.register(session);
      }
      return session;
    }