DestinationUID duid = msgAck.getDestUID();
int type = (duid.isQueue() ? DestType.DEST_TYPE_QUEUE
: DestType.DEST_TYPE_TOPIC);
Destination dest = Destination.getDestination(duid.getName(),
type, true, true);
dest.load();
SysMessageID mid = msgAck.getSysMessageID();
ConsumerUID cid = msgAck.getConsumerID();
boolean sync = true;
boolean isLastAck = false;
TransactionAcknowledgement txAck = new TransactionAcknowledgement(mid, cid, cid);