boolean durableRef = message.isDurable() && queue.durable;
if (durableRef && ! ref.isPaged())
{
int count = message.decrementDurableRefCount();
if (count == 0)
{
// Note - we MUST store the delete after the preceeding ack has been committed to storage, we cannot combine
// the last ack and delete into a single delete.