@Nullable
    private Integer waitFor(Process process) {
        try {
            return process.waitFor();
        } catch (InterruptedException e) {
            log.info("interrupted in Process.waitFor");
            return null;
        }
    }
@ Nullable private Integer waitFor ( Process process ) { try { return process . waitFor ( ) ; } catch ( InterruptedException e ) { log . info ( "interrupted in Process.waitFor" ) ; return null ; } }
Wait for a given process.

@param process the process one wants to wait for.