log.debug("Exit: SandeshaUtil::removeMustUnderstand");
return envelope;
}
public static EndpointReference cloneEPR (EndpointReference epr) {
EndpointReference newEPR = new EndpointReference (epr.getAddress());
Map referenceParams = epr.getAllReferenceParameters();
if (referenceParams != null) {
for (Iterator keys = referenceParams.keySet().iterator(); keys
.hasNext();) {
Object key = keys.next();
Object referenceParam = referenceParams.get(key);
if (referenceParam instanceof OMElement) {
OMElement clonedElement = ((OMElement) referenceParam)
.cloneOMElement();
clonedElement.setText("false");
newEPR.addReferenceParameter(clonedElement);
}
}
}
return newEPR;