ref = handler.createReference(msg, d.getDestinationUID(), con, isadmin);
// dont bother calling route if there are no messages
//
// to improve performance, we route and later forward
route = handler.queueMessage(d, ref, transacted);
s = handler.routeMessage(transacted, ref, route, d);
// handle producer flow control
handler.pauseProducer(d, pausedProducer, con);