code: public static NodeSequence withNodes( final Iterator<CachedNode> nodes,
                                            final long nodeCount,
                                            final float score,
                                            final String workspaceName ) {
          assert nodeCount >= -1;
          if (nodes == null) return emptySequence(1);
          return withBatch(batchOf(nodes, nodeCount, score, workspaceName));
      }
docs: Create a sequence of nodes that iterates over the supplied nodes. Note that the supplied iterator is accessed lazily as the
  resulting sequence's {@link #nextBatch() first batch} is {@link Batch#nextRow() used}.
  
  @param nodes the iterator over the node keys to be returned; if null, an {@link #emptySequence empty instance} is returned
  @param nodeCount the number of nodes in the iterator; must be -1 if not known, 0 if known to be empty, or a positive number
  if the number of nodes is known
  @param score the score to return for all of the nodes
  @param workspaceName the name of the workspace in which all of the nodes exist
  @return the sequence of nodes; never null