code: public final long getSession(RaftGroupId groupId) {
          SessionState session = sessions.get(groupId);
          return session != null ? session.id : NO_SESSION_ID;
      }
docs: Returns id of the session opened for the given Raft group.
  Returns {@link #NO_SESSION_ID} if no session exists.