class SvgElementGlyphRenderer implements DOMGlyphRenderer<SvgDataUriGlyph> {

    @Override
    public IsElement render(final SvgDataUriGlyph glyph,
                            final double width,
                            final double height) {
        final String content = svgDataUriUtil
                .generate(glyph.getSvg(),
                          glyph.getDefs(),
                          glyph.getValidUseRefIds());
        final ImageElementRendererView view = viewInstanceSupplier.get();
        return view.setDOMContent(content,
                                  (int) width,
                                  (int) height);
    }

    protected  SvgElementGlyphRenderer();
    @Inject public  SvgElementGlyphRenderer(final SvgDataUriGenerator svgDataUriUtil,
                                   final @Any ManagedInstance<ImageElementRendererView> viewInstances);
      SvgElementGlyphRenderer(final SvgDataUriGenerator svgDataUriUtil,
                            final Supplier<ImageElementRendererView> viewInstanceSupplier,
                            final Command viewInstancesDestroyer);

}