if (log.isDebugEnabled()) { log.debug("Importing " + namespace + " url" + location); }
    private ImportedDocument doImport(String path, String namespace)            throws IOException, ParsingException, CdlException {        URL location = getImportResolver().resolveToURL(path);        //we now have a location; lets load it.        InputStream inputStream = location.openStream();        CdlDocument doc;        try {            doc = parser.parseStream(inputStream);            //recursive parse            doc.parse(this);        } finally {            inputStream.close();        }        ImportedDocument imported = new ImportedDocument();        imported.setDocument(doc);        imported.setNamespace(namespace);        imported.setLocation(path);        return imported;    }