if (selected != null && !selected.isEmpty()) {
List<AbstractButton> buttons = new ArrayList<AbstractButton>();
for (Component comp : selected) {
WidgetAdapter adapter = WidgetAdapter.getWidgetAdapter(comp);
if (comp instanceof AbstractButton) {
IAdapter parent = adapter.getParent();
if (parent instanceof ButtonGroupAdapter) {
ButtonGroupAdapter parentAdapter = (ButtonGroupAdapter) parent;
ButtonGroup bg = parentAdapter.getButtonGroup();
Enumeration<AbstractButton> elements = bg.getElements();
while (elements.hasMoreElements()) {