} else if (obj instanceof Collection) {
Collection collection = (Collection) obj;
iterator = collection.iterator();
} else if (obj instanceof FeatureCollection) {
FeatureCollection collection = (FeatureCollection) obj;
iterator = DataUtilities.iterator( collection.features() );
} else {
iterator = new SingleIterator(obj);
}
entry.children.add(new Object[] { child, iterator, obj });