docs: private void executeQuery(
        long index,
        long sequence,
        long timestamp,
        RaftSession session,
        PrimitiveOperation operation,
        CompletableFuture<OperationResult> future) {
      // If the service has been deleted then throw an unknown service exception.
      if (deleted) {
        log.warn("Service {} has been deleted by another process", serviceName);
        future.completeExceptionally(new RaftException.UnknownService("Service " + serviceName + " has been deleted"));
        return;
      }
  
      // If the session is not open, fail the request.
      if (!session.getState().active()) {
        log.warn("Inactive session: " + session.sessionId());
        future.completeExceptionally(new RaftException.UnknownSession("Unknown session: " + session.sessionId()));
        return;
      }
  
      // Otherwise, sequence the query.
      sequenceQuery(index, sequence, timestamp, session, operation, future);
    }