code: private void sequenceQuery(QueryEntry entry, CompletableFuture<QueryResponse> future) {
      // Get the client's server session. If the session doesn't exist, return an unknown session error.
      ServerSessionContext session = context.getStateMachine().executor().context().sessions().getSession(entry.getSession());
      if (session == null) {
        future.complete(logResponse(QueryResponse.builder()
          .withStatus(Response.Status.ERROR)
          .withError(CopycatError.Type.UNKNOWN_SESSION_ERROR)
          .build()));
      } else {
        sequenceQuery(entry, session, future);
      }
    }
docs: Sequences the given query.