final SVGDrawable drawable = new SVGDrawable(node);
final BufferedImage bi = new BufferedImage((int) bounds.getWidth(), (int) bounds.getHeight(), BufferedImage.TYPE_INT_ARGB);
final Graphics2D graphics = (Graphics2D) bi.getGraphics();
drawable.draw(graphics, new Rectangle2D.Double(0, 0, bounds.getWidth(), bounds.getHeight()));
graphics.dispose();
return new SimpleResource(data.getKey(), bi, Image.class, version);
}
catch (IOException e)
{
throw new ResourceLoadingException("Failed to process SVG file", e);
}