Parser parser = new Parser(this, settings, res);
try {
XMLHelper.parse(descriptorURL, null, parser);
} catch (SAXException ex) {
ParseException pe = new ParseException(ex.getMessage()+" in "+descriptorURL, 0);
pe.initCause(ex);
throw pe;
} catch (ParserConfigurationException ex) {
IllegalStateException ise = new IllegalStateException(ex.getMessage()+" in "+descriptorURL);
ise.initCause(ex);
throw ise;