runtime.exec(getCmdLine(m_binDirectory), null, destDir);
Process process = runtime.exec(getCmdLine(m_binDirectory), null, destDir); process.waitFor(); int exitValue = process.exitValue(); if (exitValue != 0) { throw new UserException("Errors when executing snapshot script: {0}", String .valueOf(exitValue)); }
    public File perform() {        try {            File destDir = new File(m_destDirectory);            Runtime runtime = Runtime.getRuntime();            runtime.exec(getCmdLine(m_binDirectory), null, destDir);            return new File(destDir, RESULT_FILE_NAME);        } catch (IOException e) {            throw new UserException("Cannot retrieve configuration snapshot.");        }    }