The JDOM-document builders allows to crate new JDOM document directly from its DOM
analog. The algorithm is the same as when loading document from XML-file, except
DOM-object is on input instead of XML file.

You just create DOMBuilder instance and used its build method with DOM passed there
to create new JDOM document. This is shown below: