if ( shouldCancel && abortIterator )
{
// Try to close first to release resources (in case the user
// doesn't have a close() call in a finally block)
close() ;
throw new QueryCancelledException() ;
}
if ( finished )
throw new NoSuchElementException(Utils.className(this)) ;