}
message.putBytesProperty(MessageImpl.HDR_ROUTE_TO_IDS, queueIds);
}
if (useDuplicateDetection && !message.containsProperty(Message.HDR_DUPLICATE_DETECTION_ID))
{
// If we are using duplicate detection and there's not already a duplicate detection header, then
// we add a header composed of the persistent node id and the message id, which makes it globally unique
// between restarts.
// If you use a cluster connection then a guid based duplicate id will be used since it is added *before*