final Process process = rt.exec(cmdParts, envParams, new File(env));
if (output != null) {
try {
if (output.equals(STDOUT)) {
bi = new PNMReader().open(new BufferedInputStream(process.getInputStream()));
} else if (isWindows) {
process.waitFor();
try {
bi = new PNMReader().open(new BufferedInputStream(new FileInputStream(new File(output))));
} catch (Exception e) {
LOGGER.error(e.getMessage(), e);
if (winOut != null) {
if (!winOut.delete() && LOGGER.isWarnEnabled()) {