private ConnectionOverride connectionOverride;
public WriteableConnectionOverride(URL brokerConsumerUrl, String brokerID) {
EndpointAddress epa = new EndpointAddress();
epa.setAddress(brokerConsumerUrl);
EndpointReference brokerConsumerEPR = new EndpointReference();
brokerConsumerEPR.setEndpointAddress(epa);
BrokerID cbi = new BrokerID();
cbi.setID(brokerID);
ReferenceProperties crp = new ReferenceProperties();
crp.addProperty(cbi);
brokerConsumerEPR.setReferenceProperties(crp);
BrokerConsumerReference brokerConsumerReference = new BrokerConsumerReference();
brokerConsumerReference.setReference(brokerConsumerEPR);
connectionOverride = new ConnectionOverride();
connectionOverride.setBrokerConsumerReference(brokerConsumerReference);
}