String[] (String groupName) { for (LwButtonGroup group : myButtonGroups) { if (group.getName().equals(groupName)) { return group.getComponentIds(); } } throw new IllegalArgumentException("Cannot find group " + groupName); }