private CommandLine makeCommandLine(String program,
                    List<String> args)
    throws NotAuthorizedException, IOException {
    String path = validateProgram(program);
    CommandLine cmd = new CommandLine(path);
    if (args != null)
      for (String arg : args)
        cmd.addArgument(arg, false);

    return cmd;
  }
Run the program synchronously as the given user.  Warning:
CommandLine will trim the argument strings.

@param program   The program to run.
@param args      Arguments to pass to the program
@param env       Any extra environment variables to set
@return The result of the run.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/ExecServiceImpl.java