HeaderList hl = message.getHeaders();
for(Header h :hl) {
String attr = h.getAttribute(AddressingVersion.W3C.nsUri,"IsReferenceParameter");
if(attr!=null && (attr.equals("true") || attr.equals("1"))) {
Document d = DOMUtil.createDom();
SAX2DOMEx s2d = new SAX2DOMEx(d);
try {
h.writeTo(s2d, XmlUtil.DRACONIAN_ERROR_HANDLER);
refParams.add((Element) d.getLastChild());
} catch (SAXException e) {
throw new WebServiceException(e);