// check and deliver if header says body length is zero
if (currentMessage.allContentReceived())
{
// TODO Deliver to queues
ServerTransaction trans = new AutoCommitTransaction(_virtualHost.getMessageStore());
final List<AMQQueue> destinationQueues = currentMessage.getDestinationQueues();
trans.enqueue(currentMessage.getDestinationQueues(), currentMessage, new ServerTransaction.Action() {
public void postCommit()
{
try
{
AMQMessage message = new AMQMessage(currentMessage.getStoredMessage());