for (UICommand cmd : Commands.getEnabledCommands(getAllCommands(), shellContext))
{
AbstractShellInteraction shellCommand;
if (cmd instanceof UIWizard)
{
shellCommand = new ShellWizard((UIWizard) cmd, shellContext, cmdLineUtil, this);
}
else
{
shellCommand = new ShellSingleCommand(cmd, shellContext, cmdLineUtil);
}