MessageProducer producer = _producer;
if (_branchProducer != null) {
producer = _branchProducer;
}
if (!getTargetCurrentDestinationName().equals(toDestinationName(producer.getDestination()))) {
throw new BridgeException("Unexpected target producer's destination name "+
toDestinationName(producer.getDestination())+": not match current target destination name "+
getTargetCurrentDestinationName());
}
try {