public synchronized Message pop() throws EmptyQueueException {
if (Debug.debug && logmon.isLoggable(BasicLevel.DEBUG))
logmon.log(BasicLevel.DEBUG, logmsg + "pop()");
if (validated == 0)
throw new EmptyQueueException();
Message item = getMessageAt(0);
removeMessageAt(0);
validated -= 1;