question: private void indexQuery ( QueryEntry entry , ServerSessionContext session , CompletableFuture < QueryResponse > future ) { if ( entry . getIndex ( ) > session . getLastApplied ( ) ) { session . registerIndexQuery ( entry . getIndex ( ) , null ) ; } else { applyQuery ( entry , future ) ; } }
target:  Ensures the given query is applied after the appropriate index.