code: protected static <I, D> void fetchResults(Iterator<DefaultQuery<I, D>> queryIt, List<D> output, int numSuffixes) {
          for (int j = 0; j < numSuffixes; j++) {
              DefaultQuery<I, D> qry = queryIt.next();
              output.add(qry.getOutput());
          }
      }
docs: Fetches the given number of query responses and adds them to the specified output list. Also, the query iterator
  is advanced accordingly.
  
  @param queryIt
  the query iterator
  @param output
  the output list to write to
  @param numSuffixes
  the number of suffixes (queries)