The getChildren method should really return another iterator.