throw new IllegalStateException("Forbidden call on a closed browser.");
// Sending a "browse" request:
QBrowseRequest browReq = new QBrowseRequest(queue.getName(), selector);
// Expecting an answer:
QBrowseReply reply = (QBrowseReply) sess.syncRequest(browReq);
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG,
this + ": received an enumeration.");
// Return an enumeration:
return new QueueEnumeration(reply.getMessages());
}