String cmdId = String.valueOf(objects[0]);
Node n = gn.find(cmdId);
if (n == null) {
n = layout.find(cmdId);
}
CommandContext ctx = commandContext;
Command cmd;
if (n instanceof CommandNode) {
cmd = lookup(((CommandNode) n).getId());
} else if (n instanceof GroupNode) {
cmd = new GroupCommand(cmdId, (GroupNode) n);