cmdCompleter = new CommandCompleter(cmdRegistry);
this.console = Console.Factory.getConsole(this);
console.setUseHistory(true);
console.setHistoryFile(new File(SecurityActions.getSystemProperty("user.home"), ".jboss-cli-history"));
console.addCompleter(cmdCompleter);
this.operationCandidatesProvider = new DefaultOperationCandidatesProvider();
} else {
this.cmdCompleter = null;
this.operationCandidatesProvider = null;
}
}