if (tovisit.size() == 0){
//nothing found; no other things to look at
return null;
}
NodeIdentifier nodeid = tovisit.pop();
GridNode currentNode = (GridNode)grid.readNode(nodeid);
currentNodeIterator = currentNode.getData().iterator();
}
}
if (sf != null){
collectedFeatureIds.add(sf.getID());