private static void writeXML(final XMLStreamWriter out, final QName name, final PortReference portReference)
throws XMLStreamException
{
final String origURI = StreamHelper.writeStartElement(out, name) ;
final TextElement addressElement = new TextElement(portReference.getAddress()) ;
StreamHelper.writeElement(out, XMLUtil.QNAME_ADDRESS_TAG, addressElement) ;
if (portReference.getAllExtensions().size() > 0)
{
final String origReferenceURI = StreamHelper.writeStartElement(out, XMLUtil.QNAME_REFERENCE_PROPERTIES_TAG) ;