Replaced LayoutIterator with java.lang.Iterator