private DocumentDefinition initDefinition(URL resource) throws Exception{
DTD dtd = new DTDParser(resource).parse();
Element rootElement = fromWutka(dtd.rootElement);
DocumentDefinition definition = new DocumentDefinition(resource, rootElement);
@SuppressWarnings("unchecked")
Enumeration<DTDElement> elements = dtd.elements.elements();