public DocumentFactory getDocumentFactory() {
        if (factory == null) {
            factory = DocumentFactory.getInstance();
        }
        return factory;
    }
@return the <code>DocumentFactory</code> used to create document objects
xmppserver/src/main/java/org/dom4j/io/XMPPPacketReader.java