code: @Override
      public void evaluate(TupleQueryResultHandler resultHandler) throws QueryEvaluationException, TupleQueryResultHandlerException {
          try {
              sync();
          } catch (MarkLogicSesameException e) {
              logger.info(e.getLocalizedMessage());
              throw new QueryEvaluationException(e);
          }
          TupleQueryResult queryResult = evaluate();
          if(queryResult.hasNext()) {
              QueryResults.report(queryResult, resultHandler);
          }
          queryResult.close();
      }
docs: evaluate tuple query w/ TupleQueryResulthandler
  
  @param resultHandler
  @throws QueryEvaluationException
  @throws TupleQueryResultHandlerException