SubprocessSecurityManager subprocessSM = null;
try {
Class<?> cliDriverClass = Class.forName(HCAT_CLI_MAIN_CLASS);
subprocessSM = new SubprocessSecurityManager();
subprocessSM.install();
Method mainMethod = cliDriverClass.getMethod("main", argv.getClass());
mainMethod.invoke(null, (Object) argv);
} catch (ClassNotFoundException cnfe) {
throw new IOException("HCatalog class not found", cnfe);
} catch (NoSuchMethodException nsme) {