this.destinationId = packet.destinationId;
this.endpoint = null; // packet.endpoint;
this.error = null;
this.exchangeId = null; //???;
this.interfaceName = packet.interfaceName;
CopyTransformer ct = new CopyTransformer();
if (packet.messages != null && packet.messages.size() > 0) {
for (Iterator it = packet.messages.entrySet().iterator(); it.hasNext();) {
Map.Entry entry = (Map.Entry) it.next();
NormalizedMessage copy = new NormalizedMessageImpl();
ct.transform(null, (NormalizedMessage) entry.getValue(), copy);
setMessage(copy, (String) entry.getKey());
}
}
this.operationName = packet.operationName;
this.pattern = packet.pattern;