docs: private void invokeQuery(PrimitiveOperation operation, CompletableFuture<byte[]> future) {
      QueryRequest request = QueryRequest.builder()
          .withSession(state.getSessionId().id())
          .withSequence(state.getCommandRequest())
          .withOperation(operation)
          .withIndex(Math.max(state.getResponseIndex(), state.getEventIndex()))
          .build();
      invokeQuery(request, future);
    }