for (int i = 0; i < commands.length; i++)
try {
String name = commands[i].getName();
if (matcher.match(name))
l.add(new SWTBotCommand(commands[i]));
} catch (Exception e) {
log.error("Failed with an exception on the command: " + commands[i].toString(), e);
}
return l;