}
private UICommand findCommand(Iterable<UICommand> commands, UIContext context, String name)
{
CommandNameUIProvider provider = new CommandNameUIProvider(context.getProvider());
final UIContext delegatingContext = new DelegatingUIContext(context, provider);
if (commands != null)
for (UICommand cmd : commands)
{
// Test non-gui command name
{