if (brokerList == null) {
throw new RuntimeException("No broker to remove for [" + notificationType + "]");
}
NeighborBrokerConsumers nbcs = rb.getNeighborBrokerConsumers();
EndpointReference rbEpr = rb.getBrokerConsumerReference().getReference();
if (nbcs != null && nbcs.getReferenceSequence() != null) {
List<Broker> neighborBrokers = new ArrayList<Broker>();
for (EndpointReference neighborBrokerConsumerEpr : nbcs.getReferenceSequence()) {
BrokerStruct neighborBrokerStruct = null;
URL neighborBrokerConsumerEprUrl = neighborBrokerConsumerEpr.getEndpointAddress().getAddress();
for (BrokerStruct brokerStruct : brokerList) {
if (brokerStruct.consumerUrl.equals(neighborBrokerConsumerEprUrl)) {
neighborBrokerStruct = brokerStruct;