route = handler.queueMessage(d, ref, transacted);
s = handler.routeMessage(transacted, ref, route, d);
// handle producer flow control
handler.pauseProducer(d, pausedProducer, con);
} catch (BrokerException ex) {
int status = ex.getStatusCode();
if (status == Status.ERROR && ref!= null && d != null)
handler.cleanupOnError(d, ref);