public void write(M3uaConfigurationData m3ua, OutputElement xml) throws XMLStreamException {
xml.setAttribute(STORE_PCAP_TRACE, m3ua.storePcapTrace);
xml.setAttribute(IS_SCTP_SERVER, m3ua.isSctpServer);
xml.setAttribute(LOCAL_PORT, m3ua.localPort);
xml.setAttribute(LOCAL_PORT_2, m3ua.localPort2);
xml.setAttribute(REMOTE_PORT, m3ua.remotePort);
xml.setAttribute(REMOTE_PORT_2, m3ua.remotePort2);
xml.setAttribute(IP_CHANNEL_TYPE, m3ua.ipChannelType.toString());
xml.setAttribute(DPC, m3ua.dpc);
xml.setAttribute(DPC_2, m3ua.dpc2);
xml.setAttribute(OPC, m3ua.opc);
xml.setAttribute(OPC_2, m3ua.opc2);
xml.setAttribute(SI, m3ua.si);
xml.setAttribute(ROUTING_CONTEXT, m3ua.routingContext);
xml.setAttribute(NETWORK_APPEARANCE, m3ua.networkAppearance);
xml.setAttribute(TRAFFIC_MODE_TYPE, m3ua.trafficModeType);
xml.setAttribute(M3UA_FUNCTIONALITY, m3ua.m3uaFunctionality.toString());
xml.setAttribute(M3UA_EXCHANGE_TYPE, m3ua.m3uaExchangeType.toString());
xml.setAttribute(ROUTING_LABEL_FORMAT, m3ua.routingLabelFormat.toString());
xml.setAttribute(M3UA_IPSPType, m3ua.m3uaIPSPType.toString());
xml.add(m3ua.localHost, LOCAL_HOST, String.class);
xml.add(m3ua.localHost2, LOCAL_HOST_2, String.class);
xml.add(m3ua.remoteHost, REMOTE_HOST, String.class);
xml.add(m3ua.remoteHost2, REMOTE_HOST_2, String.class);
if (m3ua.getSctpExtraHostAddresses() != null && !m3ua.getSctpExtraHostAddresses().equals("")) {
xml.add(m3ua.getSctpExtraHostAddresses(), EXTRA_HOST_ADDRESSES, String.class);
}
}