I'm a little nervous about this eating the exception and returning null. Java Iterators throw a NoSuchElement exception when they run off the end: http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html#next()