static void setUnixProcessPriority(GeneralCommandLine commandLine, int priority) {
    if (priority < -20 || priority > 19) {
      throw new IllegalArgumentException("priority must be greater or equal to -20 and less than 20: " + priority);
    }

    String executablePath = commandLine.getExePath();
    commandLine.setExePath("nice");
    commandLine.getParametersList().prependAll("-n", Integer.toString(priority), executablePath);
  }
static void setUnixProcessPriority(GeneralCommandLine commandLine, int priority)