if (epr == null || epr.getAddress() == null) {
return;
}
try {
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
Document document = documentBuilder.newDocument();
Element address = document.createElementNS(getNamespaceUri(), QNameUtils.toQualifiedName(getAddressName()));
address.setTextContent(epr.getAddress().toString());
transform(new DOMSource(address), headerElement.getResult());
if (getReferenceParametersName() != null && !epr.getReferenceParameters().isEmpty()) {
Element referenceParams = document.createElementNS(getNamespaceUri(),