public WizardCommandController createWizardController(String name, Resource<?>... initialSelection) throws Exception
{
WizardCommandController result = null;
Iterable<UICommand> commands = commandFactory.getCommands();
UIContextImpl context = getUIContextInstance(initialSelection);
for (UICommand command : commands)
{
if (command instanceof UIWizard)
{
UICommandMetadata metadata = command.getMetadata(context);