// Before we do the conversion, we have to fix the QNames for fault elements
_fixFaultElements(saajEnvelope);
// Get a XMLStreamReader backed by a SOAPElement tree
XMLStreamReader reader = new SOAPElementReader(saajEnvelope);
// Get a SOAP OM Builder. Passing null causes the version to be automatically triggered
StAXSOAPModelBuilder builder = new StAXSOAPModelBuilder(reader, null);
// Create and return the OM Envelope
org.apache.axiom.soap.SOAPEnvelope omEnvelope = builder.getSOAPEnvelope();
// TODO The following statement expands the OM tree. This is
// a brute force workaround to get around an apparent bug in the om serialization
// (the pull stream parsing was not pulling the final tag).
// Four things need to occur: