code: public XEvent next() {
  		XEvent result = null;
  		try {
  			result = list.get(position);
  		} catch (IndexOutOfBoundsException e) {
  			throw new NoSuchElementException("There is no next event in this trace");
  		} finally {
  			position++;
  		}
  		return result;
  	}
docs: /*
  (non-Javadoc)
  
  @see java.util.Iterator#next()