protected boolean loadImage(String uri) {
// parse document and get the size attributes of the svg element
try {
SAXSVGDocumentFactory factory =
new SAXSVGDocumentFactory(SVGImage.getParserName());
SVGDocument doc = (SVGDocument)factory.createDocument(uri, imageStream);
UserAgent userAgent = new MUserAgent(new AffineTransform());
BridgeContext ctx = new BridgeContext(userAgent);
Element e = ((SVGDocument)doc).getRootElement();