// if the reference was busy during the previous iteration, handle it now
if (current != null)
{
try
{
HandleStatus status = handle(current);
if (status == HandleStatus.BUSY)
{
return;
}
if (status == HandleStatus.HANDLED)
{
proceedDeliver(current);
}
current = null;
}
catch (Exception e)
{
ServerConsumerImpl.log.error("Exception while browser handled from " + messageQueue + ": " + current, e);
return;
}
}
while (iterator.hasNext())
{
MessageReference ref = iterator.next();
try
{
HandleStatus status = handle(ref);
if (status == HandleStatus.HANDLED)
{
proceedDeliver(ref);
}
else