fix for DocumentException when calling getDocFromStream; created XmlDom4JUtils class to wrap calls