nu.xom.Document xomDoc = cdlDocument.getDocument();
    public Document resolve(Document doc) throws CDLException {        try {            ParseContext context = new ParseContext();            CdlDocument cdlDocument = helper.load(doc);            cdlDocument.parse(context);            nu.xom.Document xomDoc = cdlDocument.getDocument();            Element system= cdlDocument.getSystem();            system.detach();            nu.xom.Document newRoot = new nu.xom.Document(system);            return XomToDom3.fromXom(newRoot);        } catch (Exception e) {            throw new CDLException(e);        }    }