code: public static void runShellCommand(String[] cmd,
                                       StringBuilder outputLines)
      throws IOException {
      runShellCommand(cmd, outputLines, null);
    }
docs: Runs the shell command which is specified, along with its arguments, in the
  given <code>String</code> array.  If there is any regular output, it is
  appended to the given <code>StringBuilder</code>.  If there is any error
  output, it is swallowed (!).