private void sequenceCommand(CommandRequest request,ServerSessionContext session,CompletableFuture<CommandResponse> future){
  if (request.sequence() > session.nextRequestSequence()) {
    session.registerRequest(request.sequence(),null);
  }
 else {
    applyCommand(request,session,future);
  }
}

private void sequenceCommand ( CommandRequest request , ServerSessionContext session , CompletableFuture < CommandResponse > future ) { if ( request . sequence ( ) > session . nextRequestSequence ( ) ) { session . registerRequest ( request . sequence ( ) , null ) ; } else { applyCommand ( request , session , future ) ; } }
sequences the given command to the log .
