String cmt = br.getKString(br.I_RM_EXPIRED_MSG_BEFORE_DELIVER_TO_CONSUMER,
ref.getSysMessageID(), "["+uid+", "+uid.getAckMode()+"]"+dest);
String cmtr = br.getKString(br.I_RM_EXPIRED_REMOTE_MSG_BEFORE_DELIVER_TO_CONSUMER,
ref.getSysMessageID(), "["+uid+", "+uid.getAckMode()+"]"+dest);
boolean islocal = ref.isLocal();
if (ref.markDead(uid, getStoredConsumerUID(), (islocal ? cmt:cmtr), null,
(expired ? RemoveReason.EXPIRED_ON_DELIVERY:RemoveReason.REMOVED_OTHER), -1, null)) {
boolean removed = false;
Destination d = Destination.getDestination(ref.getDestinationUID());
if (d != null) {
if (ref.isDead()) {