addReferenceNodes(new DOMResult(referenceProps), epr.getReferenceProperties());
transform(new DOMSource(referenceProps), headerElement.getResult());
}
}
catch (ParserConfigurationException ex) {
throw new AddressingException("Could not add Endpoint Reference [" + epr + "] to header element", ex);
}
catch (TransformerException ex) {
throw new AddressingException("Could not add reference properties/parameters to message", ex);
}
}