public void write(EndpointReferenceType endpointReference) throws ProcessingException {
StaxUtil.writeStartElement(writer, WSA_PREFIX, ENDPOINT_REFERENCE, WSA_NS);
StaxUtil.writeNameSpace(writer, WSA_PREFIX, WSA_NS);
AttributedURIType attributedURI = endpointReference.getAddress();
if (attributedURI != null) {
String value = attributedURI.getValue();
StaxUtil.writeStartElement(writer, WSA_PREFIX, ADDRESS, WSA_NS);
StaxUtil.writeCharacters(writer, value);
StaxUtil.writeEndElement(writer);
}