element = xmlSchema.getSchemaElement(document);
XmlSchemaCollection xmlSchemaCollection = new XmlSchemaCollection();
xmlSchemaList.add(xmlSchemaCollection.read(element));
}
} catch (ParserConfigurationException e) {
throw new DummySchemaGenerationException("Can not build the dom tree", e);
}
return xmlSchemaList;
}