docs: private void indexQuery(
        long index,
        long timestamp,
        RaftSession session,
        PrimitiveOperation operation,
        CompletableFuture<OperationResult> future) {
      // If the query index is greater than the session's last applied index, queue the request for handling once the
      // state machine is caught up.
      if (index > currentIndex) {
        log.trace("Registering query with index " + index + " > " + currentIndex);
        session.registerIndexQuery(index, () -> applyQuery(timestamp, session, operation, future));
      } else {
        applyQuery(timestamp, session, operation, future);
      }
    }