// We have to copy the message and store it separately, otherwise we may lose remote bindings in case of restart before the message
// arrived the target node
// as described on https://issues.jboss.org/browse/JBPAPP-6130
ServerMessage copyRedistribute = message.copy(storageManager.generateUniqueID());
Bindings bindings = addressManager.getBindingsForRoutingAddress(message.getAddress());
if (bindings != null)
{
RoutingContext context = new RoutingContextImpl(tx);
boolean routed = bindings.redistribute(copyRedistribute, originatingQueue, context);
if (routed)
{
return new Pair<RoutingContext, ServerMessage> (context, copyRedistribute);
}