final SVGDocument document = (SVGDocument) loader.loadDocument
(url.toURI().toASCIIString(), data.getResourceAsStream(caller));
final BridgeContext ctx = new BridgeContext(userAgent, loader);
final GVTBuilder builder = new GVTBuilder();
final GraphicsNode node = builder.build(ctx, document);
return new SimpleResource(data.getKey(), new SVGDrawable(node), DrawableWrapper.class, version);
}
catch (IOException e)
{
throw new ResourceLoadingException("Failed to process SVG file", e);
}