@Override public UICommand getCommand(AddonRegistry addonRegistry, UIContext context) { if (command == null) { List<UICommand> commands = new ArrayList<>(); for (NavigationResultEntry entry : entries) { UICommand command = entry.getCommand(addonRegistry, context); commands.add(command); } command = new CompositeCommand(metadata, commands); } return command; }