loader.addSVGDocumentLoaderListener(new SVGRasterizerListener());
/* Note that Batik uses the context class loader for loading SAX Parser, etc.
* Context class loader is inappropriate under the Felix implementation of OSGi,
* so replace it with the regular class loader. */
loader.setContextClassLoader(loader.getClass().getClassLoader());
loader.start();
}
/**
* Inject behavior to be called when rendering is complete
* @param callback the behavior to run after rendering