AbstractShellInteraction result = null;
CommandLineUtil cmdLineUtil = getCommandLineUtil();
UICommand cmd = commandFactory.getCommandByName(shellContext, commandName);
if (cmd != null)
{
CommandController controller = commandControllerFactory.createController(shellContext, shell, cmd);
if (controller instanceof WizardCommandController)
{
result = new ShellWizard((WizardCommandController) controller, shellContext, cmdLineUtil, this);
}
else