* @return the new reference with the id encoded as a reference parameter
* @see org.apache.cxf.transport.MultiplexDestination#getAddressWithId(java.lang.String)
*/
public EndpointReferenceType getAddressWithId(String id) {
EndpointReferenceType epr = EndpointReferenceUtils.duplicate(
EndpointReferenceUtils.mint(reference, bus));
ReferenceParametersType newParams = new org.apache.cxf.ws.addressing.ObjectFactory()
.createReferenceParametersType();
ReferenceParametersType existingParams = epr.getReferenceParameters();
if (null != existingParams) {
newParams.getAny().addAll(existingParams.getAny());
}
newParams.getAny().add(new JAXBElement<String>(MULTIPLEX_ID_QNAME, String.class, id));
epr.setReferenceParameters(newParams);
return epr;
}