log.debug("working_dir: " + uploadTempDir);
String reqFilePrefix = fileName + "_" + CalendarPatterns.getTimeForStreamId(new Date());
File svgFile = new File(uploadTempDir, reqFilePrefix + ".svg");
log.debug("exported svg file: " + svgFile.getCanonicalPath());
FileWriter out = new FileWriter(svgFile);
svgGenerator.stream(out, useCSS);
out.flush();
out.close();
File expFile = new File(uploadTempDir, reqFilePrefix + "." + exportType);
log.debug("exported file: " + expFile.getCanonicalPath());
if ("svg".equals(exportType)) {