throw new RuntimeException("Can't find neighbor broker for consumer EPR [" +
neighborBrokerConsumerEprUrl + "]");
}
BrokerConsumerReference bcr = new BrokerConsumerReference();
bcr.setReference(EncodingUtils.createEndpointReference(neighborBrokerStruct.consumerUrl, neighborBrokerStruct.brokerID));
BrokerProducerReference bpr = new BrokerProducerReference();
bpr.setReference(EncodingUtils.createEndpointReference(neighborBrokerStruct.producerUrl, neighborBrokerStruct.brokerID));
Broker neighborBroker = new Broker();
neighborBroker.setBrokerConsumerReference(bcr);
neighborBroker.setBrokerProducerReference(bpr);
neighborBrokers.add(neighborBroker);
}