exchangeName = pb.getExchange();
routingKey = pb.getRoutingKey();
}
else
{
MessageTransferMessage message = (MessageTransferMessage) entry.getMessage();
DeliveryProperties delvProps = message.getHeader().get(DeliveryProperties.class);
exchangeName = (delvProps == null || delvProps.getExchange() == null) ? null : new AMQShortString(delvProps.getExchange());
routingKey = (delvProps == null || delvProps.getRoutingKey() == null) ? null : new AMQShortString(delvProps.getRoutingKey());
}
final boolean isRedelivered = entry.isRedelivered();