list = new LazyList<String>();
esb.setSOAP11EncodingStyles(list);
}
list.add(encodingStyle);
} else if (soapObject instanceof AttributeExtensibleXMLObject) {
AttributeMap am = ((AttributeExtensibleXMLObject) soapObject).getUnknownAttributes();
String list = am.get(EncodingStyleBearing.SOAP11_ENCODING_STYLE_ATTR_NAME);
if (list == null) {
list = encodingStyle;
} else {
list = list + " " + encodingStyle;
}
am.put(EncodingStyleBearing.SOAP11_ENCODING_STYLE_ATTR_NAME, list);
} else {
throw new IllegalArgumentException(
"Specified object was neither EncodingStyleBearing nor AttributeExtensible");
}
}