ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1609868 [1/2] - in /webservices/axiom/trunk/modules: axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/ axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/ axiom-dom/src...
Date Sat, 12 Jul 2014 00:10:26 GMT
Author: veithen
Date: Sat Jul 12 00:10:25 2014
New Revision: 1609868

URL: http://svn.apache.org/r1609868
Log:
Make the factory attribute private to force subclasses to use the getOMFactory() method. This fixes a problem reported by Detelin Yordanov, where a null value is copied to a newly created node if the factory attribute has not been initialized yet (which is possible when the SOAP version is autodetected: in this case the factory is set only when the SOAP envelope has been reached).

Added:
    webservices/axiom/trunk/modules/axiom-dom/src/test/java/org/apache/axiom/soap/impl/dom/SOAPDOMImplementationTest.java   (with props)
    webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soapdom/
    webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soapdom/SOAPDOMTestSuiteBuilder.java   (with props)
    webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soapdom/message/
    webservices/axiom/trunk/modules/axiom-testsuite/src/main/java/org/apache/axiom/ts/soapdom/message/TestLazySOAPFactorySelection.java   (with props)
Modified:
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttrImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CDATASectionImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CommentImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentFragmentImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentTypeImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/EntityReferenceImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ParentNode.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ProcessingInstructionImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11BodyImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12BodyImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultSubCodeImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultTextImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultValueImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java
    webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMEntityReferenceImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMProcessingInstructionImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSerializableImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPBodyImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPEnvelopeImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultDetailImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultRoleImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderBlockImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11BodyImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12BodyImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultTextImpl.java
    webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultValueImpl.java

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttrImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttrImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttrImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttrImpl.java Sat Jul 12 00:10:25 2014
@@ -486,7 +486,7 @@ public class AttrImpl extends RootNode i
 
     ParentNode shallowClone(OMCloneOptions options, ParentNode targetParent, boolean namespaceRepairing) {
         // Note: targetParent is always null here
-        return new AttrImpl(localName, namespace, type, factory);
+        return new AttrImpl(localName, namespace, type, getOMFactory());
     }
 
     public final boolean isComplete() {

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CDATASectionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CDATASectionImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CDATASectionImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CDATASectionImpl.java Sat Jul 12 00:10:25 2014
@@ -43,6 +43,6 @@ public class CDATASectionImpl extends Te
     }
 
     ChildNode createClone() {
-        return new CDATASectionImpl(textValue, factory);
+        return new CDATASectionImpl(textValue, getOMFactory());
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CommentImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CommentImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CommentImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CommentImpl.java Sat Jul 12 00:10:25 2014
@@ -58,6 +58,6 @@ public class CommentImpl extends Charact
     }
 
     ChildNode createClone() {
-        return new CommentImpl(getData(), factory);
+        return new CommentImpl(getData(), getOMFactory());
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentFragmentImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentFragmentImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentFragmentImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentFragmentImpl.java Sat Jul 12 00:10:25 2014
@@ -86,7 +86,7 @@ public class DocumentFragmentImpl extend
     }
 
     ParentNode shallowClone(OMCloneOptions options, ParentNode targetParent, boolean namespaceRepairing) {
-        return new DocumentFragmentImpl(factory);
+        return new DocumentFragmentImpl(getOMFactory());
     }
 
     public final void setComplete(boolean state) {

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java Sat Jul 12 00:10:25 2014
@@ -121,7 +121,7 @@ public class DocumentImpl extends RootNo
         if (!DOMUtil.isQualifiedName(name)) {
             throw DOMUtil.newDOMException(DOMException.INVALID_CHARACTER_ERR);
         }
-        return new AttrImpl(this, name, this.factory);
+        return new AttrImpl(this, name, getOMFactory());
     }
 
     public Attr createAttributeNS(String namespaceURI, String qualifiedName)
@@ -136,29 +136,29 @@ public class DocumentImpl extends RootNo
         } else {
             namespace = new OMNamespaceImpl(namespaceURI, prefix == null ? "" : prefix);
         }
-        return new AttrImpl(this, localName, namespace, this.factory);
+        return new AttrImpl(this, localName, namespace, getOMFactory());
     }
 
     public CDATASection createCDATASection(String data) throws DOMException {
-        CDATASectionImpl cdataSection = new CDATASectionImpl(data, factory);
+        CDATASectionImpl cdataSection = new CDATASectionImpl(data, getOMFactory());
         cdataSection.setOwnerDocument(this);
         return cdataSection;
     }
 
     public Comment createComment(String data) {
-        CommentImpl comment = new CommentImpl(data, this.factory);
+        CommentImpl comment = new CommentImpl(data, getOMFactory());
         comment.setOwnerDocument(this);
         return comment;
     }
 
     public DocumentFragment createDocumentFragment() {
-        DocumentFragmentImpl fragment = new DocumentFragmentImpl(this.factory);
+        DocumentFragmentImpl fragment = new DocumentFragmentImpl(getOMFactory());
         fragment.setOwnerDocument(this);
         return fragment;
     }
 
     public Element createElement(String tagName) throws DOMException {
-        ElementImpl element = new ElementImpl(null, tagName, null, null, this.factory, false);
+        ElementImpl element = new ElementImpl(null, tagName, null, null, getOMFactory(), false);
         element.setOwnerDocument(this);
         return element;
     }
@@ -180,26 +180,26 @@ public class DocumentImpl extends RootNo
         } else {
             namespace = new OMNamespaceImpl(namespaceURI, prefix == null ? "" : prefix);
         }
-        ElementImpl element = new ElementImpl(null, localName, namespace, null, this.factory, false);
+        ElementImpl element = new ElementImpl(null, localName, namespace, null, getOMFactory(), false);
         element.setOwnerDocument(this);
         return element;
     }
 
     public EntityReference createEntityReference(String name) throws DOMException {
-        EntityReferenceImpl node = new EntityReferenceImpl(name, null, factory);
+        EntityReferenceImpl node = new EntityReferenceImpl(name, null, getOMFactory());
         node.setOwnerDocument(this);
         return node;
     }
 
     public ProcessingInstruction createProcessingInstruction(String target,
                                                              String data) throws DOMException {
-        ProcessingInstructionImpl pi = new ProcessingInstructionImpl(target, data, factory);
+        ProcessingInstructionImpl pi = new ProcessingInstructionImpl(target, data, getOMFactory());
         pi.setOwnerDocument(this);
         return pi;
     }
 
     public Text createTextNode(String value) {
-        TextImpl text = new TextImpl(value, this.factory);
+        TextImpl text = new TextImpl(value, getOMFactory());
         text.setOwnerDocument(this);
         return text;
     }
@@ -238,7 +238,7 @@ public class DocumentImpl extends RootNo
     }
 
     public DOMImplementation getImplementation() {
-        return ((DOMMetaFactory)factory.getMetaFactory()).getDOMImplementation();
+        return ((DOMMetaFactory)getOMFactory().getMetaFactory()).getDOMImplementation();
     }
 
     public Node importNode(Node importedNode, boolean deep) throws DOMException {
@@ -566,7 +566,7 @@ public class DocumentImpl extends RootNo
     }
 
     protected DocumentImpl createClone(OMCloneOptions options) {
-        return new DocumentImpl(factory);
+        return new DocumentImpl(getOMFactory());
     }
     
     public final void setComplete(boolean complete) {

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentTypeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentTypeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentTypeImpl.java Sat Jul 12 00:10:25 2014
@@ -88,6 +88,6 @@ public class DocumentTypeImpl extends Le
     }
 
     ChildNode createClone() {
-        return new DocumentTypeImpl(rootName, publicId, systemId, internalSubset, factory);
+        return new DocumentTypeImpl(rootName, publicId, systemId, internalSubset, getOMFactory());
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ElementImpl.java Sat Jul 12 00:10:25 2014
@@ -353,7 +353,7 @@ public class ElementImpl extends ParentN
             this.declareDefaultNamespace(value);
         } else {
             this.setAttributeNode(new AttrImpl(ownerDocument(), name, value,
-                                               this.factory));
+                                               getOMFactory()));
         }
 
     }
@@ -410,7 +410,7 @@ public class ElementImpl extends ParentN
             attr.setValue(value);
         } else {
             if (namespaceURI != null) {
-                attr = new AttrImpl(ownerDocument(), localName, value, this.factory);
+                attr = new AttrImpl(ownerDocument(), localName, value, getOMFactory());
                 attr.internalSetNamespace(new OMNamespaceImpl(namespaceURI, prefix == null ? "" : prefix));
     
                 this.setAttributeNodeNS(attr);
@@ -475,7 +475,7 @@ public class ElementImpl extends ParentN
                 }
             }
         }
-        return addAttribute(new AttrImpl(null, localName, namespace, value, factory));
+        return addAttribute(new AttrImpl(null, localName, namespace, value, getOMFactory()));
     }
 
     public OMNamespace addNamespaceDeclaration(String uri, String prefix) {
@@ -867,7 +867,7 @@ public class ElementImpl extends ParentN
         if (options.isPreserveModel()) {
             clone = (ElementImpl)createClone(options, targetParent, namespaceRepairing);
         } else {
-            clone = new ElementImpl(targetParent, localName, namespace, null, factory, namespaceRepairing);
+            clone = new ElementImpl(targetParent, localName, namespace, null, getOMFactory(), namespaceRepairing);
         }
         for (int i=0, l=attributes.getLength(); i<l; i++) {
             AttrImpl attr = (AttrImpl)attributes.item(i);
@@ -879,7 +879,7 @@ public class ElementImpl extends ParentN
     }
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent, boolean generateNSDecl) {
-        return new ElementImpl(targetParent, localName, namespace, null, factory, generateNSDecl);
+        return new ElementImpl(targetParent, localName, namespace, null, getOMFactory(), generateNSDecl);
     }
     
     public void setLineNumber(int lineNumber) {

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/EntityReferenceImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/EntityReferenceImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/EntityReferenceImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/EntityReferenceImpl.java Sat Jul 12 00:10:25 2014
@@ -56,7 +56,7 @@ public class EntityReferenceImpl extends
     }
 
     ChildNode createClone() {
-        return new EntityReferenceImpl(name, replacementText, factory);
+        return new EntityReferenceImpl(name, replacementText, getOMFactory());
     }
 
     public String getNodeName() {

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/NodeImpl.java Sat Jul 12 00:10:25 2014
@@ -58,7 +58,7 @@ public abstract class NodeImpl extends I
     private Hashtable userData; // Will be initialized in setUserData()
 
     /** Factory that created this node */
-    protected OMFactory factory;
+    private OMFactory factory;
 
     // data
 
@@ -413,7 +413,7 @@ public abstract class NodeImpl extends I
     }
 
     /** Returns the <code>OMFactory</code> that created this node */
-    public OMFactory getOMFactory() {
+    public final OMFactory getOMFactory() {
         if (factory == null) {
             factory = ((StAXSOAPModelBuilder)getBuilder()).getSOAPFactory();
         }
@@ -448,7 +448,7 @@ public abstract class NodeImpl extends I
         if (ownerNode == null) {
             // As specified by DOMMetaFactory, the OMFactory for an implicitly created owner
             // document is always the OMFactory for plain XML.
-            DocumentImpl document = new DocumentImpl(factory.getMetaFactory().getOMFactory());
+            DocumentImpl document = new DocumentImpl(getOMFactory().getMetaFactory().getOMFactory());
             internalSetOwnerNode(document);
             return document;
         } else if (ownerNode instanceof DocumentImpl) {

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ParentNode.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ParentNode.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ParentNode.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ParentNode.java Sat Jul 12 00:10:25 2014
@@ -406,7 +406,7 @@ public abstract class ParentNode extends
         }
         // create a Text node to hold the given content
         if (textContent != null && textContent.length() != 0) {
-            insertBefore((NodeImpl)factory.createOMText(textContent), null, false);
+            insertBefore((NodeImpl)getOMFactory().createOMText(textContent), null, false);
         }
     }
 

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ProcessingInstructionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ProcessingInstructionImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ProcessingInstructionImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ProcessingInstructionImpl.java Sat Jul 12 00:10:25 2014
@@ -90,6 +90,6 @@ public class ProcessingInstructionImpl e
     }
 
     ChildNode createClone() {
-        return new ProcessingInstructionImpl(target, value, factory);
+        return new ProcessingInstructionImpl(target, value, getOMFactory());
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextImpl.java Sat Jul 12 00:10:25 2014
@@ -91,6 +91,6 @@ public class TextImpl extends TextNodeIm
     }
 
     ChildNode createClone() {
-        return new TextImpl(this, factory);
+        return new TextImpl(this, getOMFactory());
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPEnvelopeImpl.java Sat Jul 12 00:10:25 2014
@@ -57,7 +57,7 @@ public class SOAPEnvelopeImpl extends SO
     }
 
     public SOAPVersion getVersion() {
-        return ((SOAPFactory)factory).getSOAPVersion();
+        return ((SOAPFactory)getOMFactory()).getSOAPVersion();
     }
 
     public SOAPHeader getHeader() {
@@ -72,7 +72,7 @@ public class SOAPEnvelopeImpl extends SO
 
     public SOAPHeader getOrCreateHeader() {
         SOAPHeader header = getHeader();
-        return header != null ? header : ((SOAPFactory)factory).createSOAPHeader(this);
+        return header != null ? header : ((SOAPFactory)getOMFactory()).createSOAPHeader(this);
     }
 
     /**
@@ -228,7 +228,7 @@ public class SOAPEnvelopeImpl extends SO
     public OMNamespace getSOAPBodyFirstElementNS() {
         QName payloadQName = this.getPayloadQName_Optimized();
         if (payloadQName != null) {
-            return this.factory.createOMNamespace(payloadQName.getNamespaceURI(), 
+            return getOMFactory().createOMNamespace(payloadQName.getNamespaceURI(), 
                                                   payloadQName.getPrefix());
         }
         SOAPBody body = this.getBody();
@@ -259,6 +259,6 @@ public class SOAPEnvelopeImpl extends SO
     }
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent, boolean generateNSDecl) {
-        return new SOAPEnvelopeImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAPEnvelopeImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultImpl.java Sat Jul 12 00:10:25 2014
@@ -102,7 +102,7 @@ public abstract class SOAPFaultImpl exte
         }
         OMElement faultDetailEnty = new ElementImpl((ParentNode)detail,
                                                     SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY,
-                                                    null, null, this.factory, true);
+                                                    null, null, getOMFactory(), true);
         faultDetailEnty.setText(sw.getBuffer().toString());
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java Sat Jul 12 00:10:25 2014
@@ -64,7 +64,7 @@ public abstract class SOAPHeaderBlockImp
             OMAttribute attribute = new AttrImpl((DocumentImpl)getOwnerDocument(), attributeName,
                                                  new OMNamespaceImpl(soapEnvelopeNamespaceURI,
                                                                    SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX),
-                                                 attrValue, this.factory);
+                                                 attrValue, getOMFactory());
             this.addAttribute(attribute);
         }
     }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderImpl.java Sat Jul 12 00:10:25 2014
@@ -73,7 +73,7 @@ public abstract class SOAPHeaderImpl ext
         
         SOAPHeaderBlock soapHeaderBlock;
         try {
-            soapHeaderBlock = ((SOAPFactory)factory).createSOAPHeaderBlock(localName, ns, this);
+            soapHeaderBlock = ((SOAPFactory)getOMFactory()).createSOAPHeaderBlock(localName, ns, this);
         } catch (SOAPProcessingException e) {
             throw new OMException(e);
         }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11BodyImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11BodyImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11BodyImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11BodyImpl.java Sat Jul 12 00:10:25 2014
@@ -45,10 +45,10 @@ public class SOAP11BodyImpl extends SOAP
     }
 
     public SOAPFault addFault(Exception e) throws OMException {
-        return new SOAP11FaultImpl(this, e, (SOAPFactory) this.factory);
+        return new SOAP11FaultImpl(this, e, (SOAPFactory)getOMFactory());
     }
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent, boolean generateNSDecl) {
-        return new SOAP11BodyImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP11BodyImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultCodeImpl.java Sat Jul 12 00:10:25 2014
@@ -82,6 +82,6 @@ public class SOAP11FaultCodeImpl extends
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP11FaultCodeImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP11FaultCodeImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultDetailImpl.java Sat Jul 12 00:10:25 2014
@@ -51,6 +51,6 @@ public class SOAP11FaultDetailImpl exten
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP11FaultDetailImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP11FaultDetailImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultImpl.java Sat Jul 12 00:10:25 2014
@@ -64,7 +64,7 @@ public class SOAP11FaultImpl extends SOA
 
     protected SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault)
             throws SOAPProcessingException {
-        return new SOAP11FaultDetailImpl(fault, (SOAPFactory) this.factory);
+        return new SOAP11FaultDetailImpl(fault, (SOAPFactory)getOMFactory());
     }
 
     public void setCode(SOAPFaultCode soapFaultCode)
@@ -138,7 +138,7 @@ public class SOAP11FaultImpl extends SOA
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        SOAPFault clone = new SOAP11FaultImpl(targetParent, namespace, null, factory, generateNSDecl);
+        SOAPFault clone = new SOAP11FaultImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
         if (e != null) {
             clone.setException(e);
         }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultReasonImpl.java Sat Jul 12 00:10:25 2014
@@ -67,6 +67,6 @@ public class SOAP11FaultReasonImpl exten
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP11FaultReasonImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP11FaultReasonImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11FaultRoleImpl.java Sat Jul 12 00:10:25 2014
@@ -54,6 +54,6 @@ public class SOAP11FaultRoleImpl extends
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP11FaultRoleImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP11FaultRoleImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderBlockImpl.java Sat Jul 12 00:10:25 2014
@@ -90,7 +90,7 @@ public class SOAP11HeaderBlockImpl exten
     }
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent, boolean generateNSDecl) {
-        SOAPHeaderBlock clone = new SOAP11HeaderBlockImpl(targetParent, getLocalName(), getNamespace(), null, factory, generateNSDecl);
+        SOAPHeaderBlock clone = new SOAP11HeaderBlockImpl(targetParent, getLocalName(), getNamespace(), null, getOMFactory(), generateNSDecl);
         copyData(options, clone);
         return clone;
     }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap11/SOAP11HeaderImpl.java Sat Jul 12 00:10:25 2014
@@ -61,6 +61,6 @@ public class SOAP11HeaderImpl extends SO
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP11HeaderImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP11HeaderImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12BodyImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12BodyImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12BodyImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12BodyImpl.java Sat Jul 12 00:10:25 2014
@@ -45,10 +45,10 @@ public class SOAP12BodyImpl extends SOAP
     }
 
     public SOAPFault addFault(Exception e) throws OMException {
-        return new SOAP12FaultImpl(this, e, (SOAPFactory) this.factory);
+        return new SOAP12FaultImpl(this, e, (SOAPFactory)getOMFactory());
     }
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent, boolean generateNSDecl) {
-        return new SOAP12BodyImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP12BodyImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultCodeImpl.java Sat Jul 12 00:10:25 2014
@@ -100,6 +100,6 @@ public class SOAP12FaultCodeImpl extends
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP12FaultCodeImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP12FaultCodeImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultDetailImpl.java Sat Jul 12 00:10:25 2014
@@ -51,6 +51,6 @@ public class SOAP12FaultDetailImpl exten
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP12FaultDetailImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP12FaultDetailImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultImpl.java Sat Jul 12 00:10:25 2014
@@ -64,7 +64,7 @@ public class SOAP12FaultImpl extends SOA
     }
 
     protected SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault) {
-        return new SOAP12FaultDetailImpl(fault, (SOAPFactory) this.factory);
+        return new SOAP12FaultDetailImpl(fault, (SOAPFactory)getOMFactory());
 
     }
 
@@ -139,7 +139,7 @@ public class SOAP12FaultImpl extends SOA
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        SOAPFault clone = new SOAP12FaultImpl(targetParent, namespace, null, factory, generateNSDecl);
+        SOAPFault clone = new SOAP12FaultImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
         if (e != null) {
             clone.setException(e);
         }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultNodeImpl.java Sat Jul 12 00:10:25 2014
@@ -69,6 +69,6 @@ public class SOAP12FaultNodeImpl extends
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP12FaultNodeImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP12FaultNodeImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultReasonImpl.java Sat Jul 12 00:10:25 2014
@@ -68,6 +68,6 @@ public class SOAP12FaultReasonImpl exten
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP12FaultReasonImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP12FaultReasonImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultRoleImpl.java Sat Jul 12 00:10:25 2014
@@ -53,6 +53,6 @@ public class SOAP12FaultRoleImpl extends
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP12FaultRoleImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP12FaultRoleImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultSubCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultSubCodeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultSubCodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultSubCodeImpl.java Sat Jul 12 00:10:25 2014
@@ -114,6 +114,6 @@ public class SOAP12FaultSubCodeImpl exte
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP12FaultSubCodeImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP12FaultSubCodeImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultTextImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultTextImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultTextImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultTextImpl.java Sat Jul 12 00:10:25 2014
@@ -70,7 +70,7 @@ public class SOAP12FaultTextImpl extends
                 new AttrImpl((DocumentImpl)getOwnerDocument(),
                              SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME,
                              langNamespace,
-                             lang, this.factory);
+                             lang, getOMFactory());
         this.addAttribute(langAttr);
     }
 
@@ -88,6 +88,6 @@ public class SOAP12FaultTextImpl extends
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP12FaultTextImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP12FaultTextImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }
\ No newline at end of file

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultValueImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultValueImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultValueImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12FaultValueImpl.java Sat Jul 12 00:10:25 2014
@@ -53,6 +53,6 @@ public class SOAP12FaultValueImpl extend
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP12FaultValueImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP12FaultValueImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderBlockImpl.java Sat Jul 12 00:10:25 2014
@@ -102,7 +102,7 @@ public class SOAP12HeaderBlockImpl exten
     }
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent, boolean generateNSDecl) {
-        SOAPHeaderBlock clone = new SOAP12HeaderBlockImpl(targetParent, getLocalName(), getNamespace(), null, factory, generateNSDecl);
+        SOAPHeaderBlock clone = new SOAP12HeaderBlockImpl(targetParent, getLocalName(), getNamespace(), null, getOMFactory(), generateNSDecl);
         copyData(options, clone);
         return clone;
     }

Modified: webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/soap12/SOAP12HeaderImpl.java Sat Jul 12 00:10:25 2014
@@ -58,6 +58,6 @@ public class SOAP12HeaderImpl extends SO
 
     protected OMElement createClone(OMCloneOptions options, ParentNode targetParent,
             boolean generateNSDecl) {
-        return new SOAP12HeaderImpl(targetParent, namespace, null, factory, generateNSDecl);
+        return new SOAP12HeaderImpl(targetParent, namespace, null, getOMFactory(), generateNSDecl);
     }
 }

Added: webservices/axiom/trunk/modules/axiom-dom/src/test/java/org/apache/axiom/soap/impl/dom/SOAPDOMImplementationTest.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-dom/src/test/java/org/apache/axiom/soap/impl/dom/SOAPDOMImplementationTest.java?rev=1609868&view=auto
==============================================================================
--- webservices/axiom/trunk/modules/axiom-dom/src/test/java/org/apache/axiom/soap/impl/dom/SOAPDOMImplementationTest.java (added)
+++ webservices/axiom/trunk/modules/axiom-dom/src/test/java/org/apache/axiom/soap/impl/dom/SOAPDOMImplementationTest.java Sat Jul 12 00:10:25 2014
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.axiom.soap.impl.dom;
+
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.apache.axiom.om.impl.dom.factory.OMDOMMetaFactory;
+import org.apache.axiom.ts.soapdom.SOAPDOMTestSuiteBuilder;
+
+public class SOAPDOMImplementationTest extends TestCase {
+    public static TestSuite suite() {
+        SOAPDOMTestSuiteBuilder builder = new SOAPDOMTestSuiteBuilder(new OMDOMMetaFactory());
+        return builder.build();
+    }
+}

Propchange: webservices/axiom/trunk/modules/axiom-dom/src/test/java/org/apache/axiom/soap/impl/dom/SOAPDOMImplementationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java Sat Jul 12 00:10:25 2014
@@ -70,6 +70,6 @@ public class OMCommentImpl extends OMLea
     }
 
     OMNode clone(OMCloneOptions options, OMContainer targetParent) {
-        return factory.createOMComment(targetParent, value);
+        return getOMFactory().createOMComment(targetParent, value);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java Sat Jul 12 00:10:25 2014
@@ -68,6 +68,6 @@ public class OMDocTypeImpl extends OMLea
     }
 
     OMNode clone(OMCloneOptions options, OMContainer targetParent) {
-        return factory.createOMDocType(targetParent, rootName, publicId, systemId, internalSubset);
+        return getOMFactory().createOMDocType(targetParent, rootName, publicId, systemId, internalSubset);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocumentImpl.java Sat Jul 12 00:10:25 2014
@@ -195,6 +195,6 @@ public class OMDocumentImpl extends OMSe
     }
 
     protected OMDocument createClone(OMCloneOptions options) {
-        return factory.createOMDocument();
+        return getOMFactory().createOMDocument();
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMElementImpl.java Sat Jul 12 00:10:25 2014
@@ -490,7 +490,7 @@ public class OMElementImpl extends OMNod
                 }
             }
         }
-        return addAttribute(new OMAttributeImpl(localName, namespace, value, this.factory));
+        return addAttribute(new OMAttributeImpl(localName, namespace, value, getOMFactory()));
     }
 
     /**
@@ -703,7 +703,7 @@ public class OMElementImpl extends OMNod
         if (options.isPreserveModel()) {
             targetElement = createClone(options, targetParent);
         } else {
-            targetElement = factory.createOMElement(getLocalName(), getNamespace(), targetParent);
+            targetElement = getOMFactory().createOMElement(getLocalName(), getNamespace(), targetParent);
         }
         for (Iterator it = getAllDeclaredNamespaces(); it.hasNext(); ) {
             OMNamespace ns = (OMNamespace)it.next();
@@ -720,7 +720,7 @@ public class OMElementImpl extends OMNod
     }
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
-        return factory.createOMElement(getLocalName(), getNamespace(), targetParent);
+        return getOMFactory().createOMElement(getLocalName(), getNamespace(), targetParent);
     }
     
     public void setLineNumber(int lineNumber) {

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMEntityReferenceImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMEntityReferenceImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMEntityReferenceImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMEntityReferenceImpl.java Sat Jul 12 00:10:25 2014
@@ -55,6 +55,6 @@ public class OMEntityReferenceImpl exten
     }
 
     OMNode clone(OMCloneOptions options, OMContainer targetParent) {
-        return new OMEntityReferenceImpl(targetParent, name, replacementText, factory, false);
+        return new OMEntityReferenceImpl(targetParent, name, replacementText, getOMFactory(), false);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMProcessingInstructionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMProcessingInstructionImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMProcessingInstructionImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMProcessingInstructionImpl.java Sat Jul 12 00:10:25 2014
@@ -91,6 +91,6 @@ public class OMProcessingInstructionImpl
     }
 
     OMNode clone(OMCloneOptions options, OMContainer targetParent) {
-        return factory.createOMProcessingInstruction(targetParent, target, value);
+        return getOMFactory().createOMProcessingInstruction(targetParent, target, value);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSerializableImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSerializableImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSerializableImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSerializableImpl.java Sat Jul 12 00:10:25 2014
@@ -42,13 +42,13 @@ import org.apache.commons.logging.LogFac
 public abstract class OMSerializableImpl extends InformationItem implements ISerializable {
     private static final Log log = LogFactory.getLog(OMSerializableImpl.class);
     
-    protected OMFactory factory;
+    private OMFactory factory;
 
     public OMSerializableImpl(OMFactory factory) {
         this.factory = factory;
     }
     
-    public OMFactory getOMFactory() {
+    public final OMFactory getOMFactory() {
         if (factory == null) {
             factory = ((StAXSOAPModelBuilder)getBuilder()).getSOAPFactory();
         }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java Sat Jul 12 00:10:25 2014
@@ -643,7 +643,7 @@ public class OMSourcedElementImpl extend
         if (options.isPreserveModel()) {
             targetOMSE = (OMSourcedElementImpl)createClone(options, targetDS);
         } else {
-            targetOMSE = (OMSourcedElementImpl)factory.createOMElement(targetDS);
+            targetOMSE = (OMSourcedElementImpl)getOMFactory().createOMElement(targetDS);
         }
         
         targetOMSE.localName = localName;
@@ -665,7 +665,7 @@ public class OMSourcedElementImpl extend
     }
     
     protected OMSourcedElement createClone(OMCloneOptions options, OMDataSource ds) {
-        return factory.createOMElement(ds);
+        return getOMFactory().createOMElement(ds);
     }
 
     public void setLineNumber(int lineNumber) {

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java Sat Jul 12 00:10:25 2014
@@ -320,6 +320,6 @@ public class OMTextImpl extends OMLeafNo
             // completely fetched into memory (or temporary storage).
             ((DataHandler)getDataHandler()).getDataSource();
         }
-        return factory.createOMText(targetParent, this);
+        return getOMFactory().createOMText(targetParent, this);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPBodyImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPBodyImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPBodyImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPBodyImpl.java Sat Jul 12 00:10:25 2014
@@ -157,7 +157,7 @@ public abstract class SOAPBodyImpl exten
                     lookAheadNS = null;
                 } else {
                     String prefix = soapBuilder.getPrefix();
-                    lookAheadNS = factory.createOMNamespace(ns, prefix == null ? "" : prefix);
+                    lookAheadNS = getOMFactory().createOMNamespace(ns, prefix == null ? "" : prefix);
                 }
             }
         }
@@ -196,6 +196,6 @@ public abstract class SOAPBodyImpl exten
     }
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
-        return ((SOAPFactory)factory).createSOAPBody((SOAPEnvelope)targetParent);
+        return ((SOAPFactory)getOMFactory()).createSOAPBody((SOAPEnvelope)targetParent);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPEnvelopeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPEnvelopeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPEnvelopeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPEnvelopeImpl.java Sat Jul 12 00:10:25 2014
@@ -73,7 +73,7 @@ public class SOAPEnvelopeImpl extends SO
     }
 
     public SOAPVersion getVersion() {
-        return ((SOAPFactory)factory).getSOAPVersion();
+        return ((SOAPFactory)getOMFactory()).getSOAPVersion();
     }
 
     public SOAPHeader getHeader() {
@@ -88,7 +88,7 @@ public class SOAPEnvelopeImpl extends SO
 
     public SOAPHeader getOrCreateHeader() {
         SOAPHeader header = getHeader();
-        return header != null ? header : ((SOAPFactory)factory).createSOAPHeader(this);
+        return header != null ? header : ((SOAPFactory)getOMFactory()).createSOAPHeader(this);
     }
 
     /**
@@ -258,7 +258,7 @@ public class SOAPEnvelopeImpl extends SO
     public OMNamespace getSOAPBodyFirstElementNS() {
         QName payloadQName = this.getPayloadQName_Optimized();
         if (payloadQName != null) {
-            return this.factory.createOMNamespace(payloadQName.getNamespaceURI(), 
+            return getOMFactory().createOMNamespace(payloadQName.getNamespaceURI(), 
                                                   payloadQName.getPrefix());
         }
         SOAPBody body = this.getBody();
@@ -289,7 +289,7 @@ public class SOAPEnvelopeImpl extends SO
     }
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
-        SOAPEnvelope clone = ((SOAPFactory)factory).createSOAPEnvelope(getNamespace());
+        SOAPEnvelope clone = ((SOAPFactory)getOMFactory()).createSOAPEnvelope(getNamespace());
         if (targetParent != null) {
             targetParent.addChild(clone);
         }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultCodeImpl.java Sat Jul 12 00:10:25 2014
@@ -67,6 +67,6 @@ public abstract class SOAPFaultCodeImpl 
     }
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
-        return ((SOAPFactory)factory).createSOAPFaultCode((SOAPFault)targetParent);
+        return ((SOAPFactory)getOMFactory()).createSOAPFaultCode((SOAPFault)targetParent);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultDetailImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultDetailImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultDetailImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultDetailImpl.java Sat Jul 12 00:10:25 2014
@@ -61,6 +61,6 @@ public abstract class SOAPFaultDetailImp
     }
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
-        return ((SOAPFactory)factory).createSOAPFaultDetail((SOAPFault)targetParent);
+        return ((SOAPFactory)getOMFactory()).createSOAPFaultDetail((SOAPFault)targetParent);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultImpl.java Sat Jul 12 00:10:25 2014
@@ -119,7 +119,7 @@ public abstract class SOAPFaultImpl exte
         }
         OMElement faultDetailEnty = new OMElementImpl(detail,
                 SOAPConstants.SOAP_FAULT_DETAIL_EXCEPTION_ENTRY, null, null,
-                factory, true);
+                getOMFactory(), true);
         faultDetailEnty.setText(sw.getBuffer().toString());
     }
 
@@ -138,7 +138,7 @@ public abstract class SOAPFaultImpl exte
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
         return e == null ?
-                ((SOAPFactory)factory).createSOAPFault((SOAPBody) targetParent):
-                ((SOAPFactory)factory).createSOAPFault((SOAPBody) targetParent, e);
+                ((SOAPFactory)getOMFactory()).createSOAPFault((SOAPBody) targetParent):
+                ((SOAPFactory)getOMFactory()).createSOAPFault((SOAPBody) targetParent, e);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultReasonImpl.java Sat Jul 12 00:10:25 2014
@@ -89,6 +89,6 @@ public abstract class SOAPFaultReasonImp
     }
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
-        return ((SOAPFactory)factory).createSOAPFaultReason((SOAPFault)targetParent);
+        return ((SOAPFactory)getOMFactory()).createSOAPFaultReason((SOAPFault)targetParent);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultRoleImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultRoleImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultRoleImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPFaultRoleImpl.java Sat Jul 12 00:10:25 2014
@@ -61,6 +61,6 @@ public abstract class SOAPFaultRoleImpl 
     }
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
-        return ((SOAPFactory)factory).createSOAPFaultRole((SOAPFault)targetParent);
+        return ((SOAPFactory)getOMFactory()).createSOAPFaultRole((SOAPFault)targetParent);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderBlockImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderBlockImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderBlockImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderBlockImpl.java Sat Jul 12 00:10:25 2014
@@ -91,7 +91,7 @@ public abstract class SOAPHeaderBlockImp
                                                         new OMNamespaceImpl(
                                                                 soapEnvelopeNamespaceURI,
                                                                 SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX),
-                                                        attrValue, this.factory);
+                                                        attrValue, getOMFactory());
             this.addAttribute(attribute);
         }
     }
@@ -146,13 +146,13 @@ public abstract class SOAPHeaderBlockImp
     }
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
-        SOAPHeaderBlock clone = ((SOAPFactory)factory).createSOAPHeaderBlock(getLocalName(), getNamespace(), (SOAPHeader)targetParent);
+        SOAPHeaderBlock clone = ((SOAPFactory)getOMFactory()).createSOAPHeaderBlock(getLocalName(), getNamespace(), (SOAPHeader)targetParent);
         copyData(options, clone);
         return clone;
     }
 
     protected OMSourcedElement createClone(OMCloneOptions options, OMDataSource ds) {
-        SOAPHeaderBlock clone = ((SOAPFactory)factory).createSOAPHeaderBlock(ds);
+        SOAPHeaderBlock clone = ((SOAPFactory)getOMFactory()).createSOAPHeaderBlock(ds);
         copyData(options, clone);
         return clone;
     }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/SOAPHeaderImpl.java Sat Jul 12 00:10:25 2014
@@ -88,7 +88,7 @@ public abstract class SOAPHeaderImpl ext
         
         SOAPHeaderBlock soapHeaderBlock;
         try {
-            soapHeaderBlock = ((SOAPFactory)factory).createSOAPHeaderBlock(localName, ns, this);
+            soapHeaderBlock = ((SOAPFactory)getOMFactory()).createSOAPHeaderBlock(localName, ns, this);
         } catch (SOAPProcessingException e) {
             throw new OMException(e);
         }
@@ -209,6 +209,6 @@ public abstract class SOAPHeaderImpl ext
     }
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
-        return ((SOAPFactory)factory).createSOAPHeader((SOAPEnvelope)targetParent);
+        return ((SOAPFactory)getOMFactory()).createSOAPHeader((SOAPEnvelope)targetParent);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11BodyImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11BodyImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11BodyImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11BodyImpl.java Sat Jul 12 00:10:25 2014
@@ -52,6 +52,6 @@ public class SOAP11BodyImpl extends SOAP
     }
 
     public SOAPFault addFault(Exception e) throws OMException {
-        return ((SOAP11Factory) this.factory).createSOAPFault(this, e);
+        return ((SOAP11Factory)getOMFactory()).createSOAPFault(this, e);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap11/SOAP11FaultImpl.java Sat Jul 12 00:10:25 2014
@@ -65,7 +65,7 @@ public class SOAP11FaultImpl extends SOA
 
     protected SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault)
             throws SOAPProcessingException {
-        return new SOAP11FaultDetailImpl(fault, (SOAPFactory) this.factory);
+        return new SOAP11FaultDetailImpl(fault, (SOAPFactory)getOMFactory());
     }
 
     public void setCode(SOAPFaultCode soapFaultCode)

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12BodyImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12BodyImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12BodyImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12BodyImpl.java Sat Jul 12 00:10:25 2014
@@ -54,6 +54,6 @@ public class SOAP12BodyImpl extends SOAP
 
     public SOAPFault addFault(Exception e) throws OMException {
         return new SOAP12FaultImpl(this, e,
-                                   (SOAPFactory) this.factory);
+                                   (SOAPFactory)getOMFactory());
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultImpl.java Sat Jul 12 00:10:25 2014
@@ -63,7 +63,7 @@ public class SOAP12FaultImpl extends SOA
     }
 
     protected SOAPFaultDetail getNewSOAPFaultDetail(SOAPFault fault) {
-        return new SOAP12FaultDetailImpl(fault, (SOAPFactory) this.factory);
+        return new SOAP12FaultDetailImpl(fault, (SOAPFactory)getOMFactory());
 
     }
 

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultNodeImpl.java Sat Jul 12 00:10:25 2014
@@ -69,6 +69,6 @@ public class SOAP12FaultNodeImpl extends
     }
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
-        return ((SOAPFactory)factory).createSOAPFaultNode((SOAPFault)targetParent);
+        return ((SOAPFactory)getOMFactory()).createSOAPFaultNode((SOAPFault)targetParent);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultSubCodeImpl.java Sat Jul 12 00:10:25 2014
@@ -124,9 +124,9 @@ public class SOAP12FaultSubCodeImpl exte
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
         if (targetParent instanceof SOAPFaultSubCode) {
-            return ((SOAPFactory)factory).createSOAPFaultSubCode((SOAPFaultSubCode)targetParent);
+            return ((SOAPFactory)getOMFactory()).createSOAPFaultSubCode((SOAPFaultSubCode)targetParent);
         } else {
-            return ((SOAPFactory)factory).createSOAPFaultSubCode((SOAPFaultCode)targetParent);
+            return ((SOAPFactory)getOMFactory()).createSOAPFaultSubCode((SOAPFaultCode)targetParent);
         }
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultTextImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultTextImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultTextImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultTextImpl.java Sat Jul 12 00:10:25 2014
@@ -77,7 +77,7 @@ public class SOAP12FaultTextImpl extends
                         SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_LOCAL_NAME,
                         langNamespace,
                         lang,
-                        this.factory);
+                        getOMFactory());
         this.addAttribute(langAttr);
     }
 
@@ -95,6 +95,6 @@ public class SOAP12FaultTextImpl extends
     }
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
-        return ((SOAPFactory)factory).createSOAPFaultText((SOAPFaultReason)targetParent);
+        return ((SOAPFactory)getOMFactory()).createSOAPFaultText((SOAPFaultReason)targetParent);
     }
 }

Modified: webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultValueImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultValueImpl.java?rev=1609868&r1=1609867&r2=1609868&view=diff
==============================================================================
--- webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultValueImpl.java (original)
+++ webservices/axiom/trunk/modules/axiom-impl/src/main/java/org/apache/axiom/soap/impl/llom/soap12/SOAP12FaultValueImpl.java Sat Jul 12 00:10:25 2014
@@ -59,9 +59,9 @@ public class SOAP12FaultValueImpl extend
 
     protected OMElement createClone(OMCloneOptions options, OMContainer targetParent) {
         if (targetParent instanceof SOAPFaultCode) {
-            return ((SOAPFactory)factory).createSOAPFaultValue((SOAPFaultCode)targetParent);
+            return ((SOAPFactory)getOMFactory()).createSOAPFaultValue((SOAPFaultCode)targetParent);
         } else {
-            return ((SOAPFactory)factory).createSOAPFaultValue((SOAPFaultSubCode)targetParent);
+            return ((SOAPFactory)getOMFactory()).createSOAPFaultValue((SOAPFaultSubCode)targetParent);
         }
     }
 }



Mime
View raw message