{
final BaseScope scope = (BaseScope) thisObj;
final String parser = "org.apache.xerces.parsers.SAXParser";//XMLResourceDescriptor.getXMLParserClassName();
final SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
final String uri = "file:" + scope.basePath + "/" + file;
final SVGOMDocument doc = (SVGOMDocument) f.createDocument(uri);
// Initialize the CSS Engine for the document
final SVGDOMImplementation impl = (SVGDOMImplementation) SVGDOMImplementation.getDOMImplementation();
final UserAgent userAgent = new UserAgentAdapter();
final BridgeContext ctx = new BridgeContext(userAgent, new DocumentLoader(userAgent));