private void doWaitFor(Process process){
  startReadStreamThread(process.getInputStream());
  startReadStreamThread(process.getErrorStream());
  try {
    process.waitFor();
  }
 catch (  InterruptedException e) {
    log.warn("e=",e);
  }
}

private void doWaitFor ( Process process ) { startReadStreamThread ( process . getInputStream ( ) ) ; startReadStreamThread ( process . getErrorStream ( ) ) ; try { process . waitFor ( ) ; } catch ( InterruptedException e ) { log . warn ( "e=" , e ) ; } }
redirect stdout / stderr of given process to current log until process exits .
