ref.removeInDelivery((c.getStoredConsumerUID() == null ?
c.getConsumerUID():c.getStoredConsumerUID()));
ref.removeDelivered(c.getStoredConsumerUID(), true);
c.pause("start remote redeliver");
if (msgoutt != null) {
c.delayNextFetchForRemote(msgoutt.longValue());
}
c.routeMessage(ref, true);
c.resume("end remote redeliver");
}
}