Add getSelectedFromGroup method.