public Document createDocument(String namespaceURI, String qualifiedName,
DocumentType doctype) throws DOMException {
// TODO Handle docType stuff
OMDOMFactory fac = new OMDOMFactory();
DocumentImpl doc = new DocumentImpl(fac);
fac.setDocument(doc);
new ElementImpl(doc, DOMUtil.getLocalName(qualifiedName),
new NamespaceImpl(namespaceURI, DOMUtil
.getPrefix(qualifiedName)), fac);