code: public static Batch batchOf( final Collection<CachedNode> nodes,
                                   final float score,
                                   final String workspaceName ) {
          if (nodes == null) return emptyBatch(workspaceName, 1);
          return batchOf(nodes.iterator(), nodes.size(), score, workspaceName);
      }
docs: Create a batch of nodes around the supplied iterable container. Note that the supplied iterator is accessed lazily only
  when the batch is {@link Batch#nextRow() used}.
  
  @param nodes the collection of nodes to be returned; if null, an {@link #emptySequence empty instance} is returned
  @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 batch of nodes; never null