}
} else {
endConsumers.setSequenceType(Constants.NoConsumers);
}
nbr.setEndConsumers(endConsumers);
EndProducers endProducers = new EndProducers();
if (producerList != null) {
endProducers.setSequenceType(Constants.EndProducers);
for (URL producerUrl : producerList) {
endProducers.addReferenceToSequence(EncodingUtils.createEndpointReference(producerUrl, null));
}
} else {
endProducers.setSequenceType(Constants.NoProducers);
}
nbr.setEndProducers(endProducers);
} else {
nbr.setFirstBroker(false);
Brokers brokers = new Brokers();