public void svg2pngUsingInkscape(File svgFile, File pngFile) throws ConverterException {
        if(inkscapePath==null)
            throw new ConverterException("No runtime defined for Inkscape");

        // inkscape classDiag.svg -e classDiag.png -d 200
        ProcessBuilder pb = new ProcessBuilder(
                asList(inkscapePath, //
                        svgFile.getAbsolutePath(),//
                        "-e", //
                        pngFile.getAbsolutePath(),//
                        "-d", "200"));
        try {
            Process process = pb.start();
            process.waitFor();
        }
        catch (InterruptedException e) {
            throw new ConverterException("Fail to convert svg to png", e);
        }
        catch (IOException e) {
            throw new ConverterException("Fail to convert svg to png", e);
        }
    }