Refactoring - using DocumentNodeElement.createDOM when creating document from wlxml