replaced domain.Iterator with java.util.Iterator