try
{
final long version = data.getVersion(caller);
final HeadlessSVGUserAgent userAgent = new HeadlessSVGUserAgent();
final DocumentLoader loader = new DocumentLoader(userAgent);
final SVGDocument document = (SVGDocument) loader.loadDocument
(String.valueOf(data.getKey().getIdentifier()), 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), version);