interactiveProcess.connect();
}
}.start();
try {
int exitCode = interactiveProcess.waitFor();
if (exitCode != 0) {
throw new ProcessNonZeroExitCodeException(process, exitCode);
}
} catch (InterruptedException e) {
LOG.info("InterruptedException!, killing the process", e);