} catch (IllegalAccessException e) {
throw new DOMException(DOMException.INVALID_ACCESS_ERR,
formatMessage("css.parser.access",
new Object[] { pn }));
}
ExtendedParser ep = ExtendedParserWrapper.wrap(p);
CSSEngine result = new SVGCSSEngine(doc, doc.getURLObject(), ep, ctx);
URL url = getClass().getResource("resources/UserAgentStyleSheet.css");
if (url != null) {
InputSource is = new InputSource(url.toString());
result.setUserAgentStyleSheet(result.parseStyleSheet(is, url, "all"));