code: public static Document getOwnerDocument()
     {
        Document doc = documentThreadLocal.get();
        if (doc == null)
        {
           doc = getDocumentBuilder().newDocument();
           documentThreadLocal.set(doc);
        }
        return doc;
     }
docs: Get the owner document that is associated with the current thread