if (packet != null) {
if (packet.isReceipt()) {
lastReceiptTimstamp = System.currentTimeMillis();
result = true;
Receipt receipt = (Receipt) packet;
ReceiptHolder rh = (ReceiptHolder) requestMap.remove(receipt.getCorrelationId());
if (rh != null) {
rh.setReceipt(receipt);
}
else {
log.warn("No Packet found to match Receipt correlationId: " + receipt.getCorrelationId());
}
}