code: @Override
  	public boolean hasMoreElements()
  	{
  		if (endOfQueueReached)
  			return false;
  		try
  		{
  			checkNotClosed();
  			Message msg = fetchNext();
  			return msg != null;
  		}
  		catch (JMSException e)
  		{
  			throw new IllegalStateException(e.toString());
  		}
  	}
docs: /* (non-Javadoc)
  @see java.util.Enumeration#hasMoreElements()