docs: protected CompletableFuture<QueryResponse> applyQuery(Indexed<QueryEntry> entry) {
      // In the case of the leader, the state machine is always up to date, so no queries will be queued and all query
      // indexes will be the last applied index.
      CompletableFuture<QueryResponse> future = new CompletableFuture<>();
      raft.getServiceManager().<OperationResult>apply(entry).whenComplete((result, error) -> {
        completeOperation(result, QueryResponse.builder(), error, future);
      });
      return future;
    }