class WriteableReplaceBrokerConnection implements Writeable {
private ReplaceBrokerConnection replaceBrokerConnection;
public WriteableReplaceBrokerConnection(EndpointReference removedBrokerEpr, List<Broker> brokerSequence) {
replaceBrokerConnection = new ReplaceBrokerConnection();
RemovedBroker removedBroker = new RemovedBroker();
removedBroker.setReference(removedBrokerEpr);
replaceBrokerConnection.setRemovedBroker(removedBroker);
if (brokerSequence != null) {
Neighbors neighbors = new Neighbors();
neighbors.setBrokerSequence(brokerSequence);
replaceBrokerConnection.setNeighbors(neighbors);