// the message is unacked, it will be lost.
_txn.dequeue(entry.getOwningResource(), entry.getMessage(), NOOP);
ServerMessage message = entry.getMessage();
MessageReference ref = message.newReference();
InstanceProperties props = entry.getInstanceProperties();
entry.delete();
synchronized (getChannel())
{
getChannel().getProtocolSession().setDeferFlush(batch);