final SVGTranscoder svgT = new SVGTranscoder();
final TranscoderInput input = new TranscoderInput(svgDocument);
final OutputStreamWriter osw = new OutputStreamWriter(outputStream);
final TranscoderOutput output = new TranscoderOutput(osw);
try {
svgT.transcode(input, output);
} catch (final TranscoderException e) {
getLogger().error("could not write svg file :" + e.getMessage());
getLogger().error(e.getMessage());
}
}