String selected = (String) typeField.getValue();
if (selected == null) {
return;
}
List<String> values = selected.equals(IncludeCollectionWrapper.SYSTEM_DEF) ? dataCollectionConfigDao.getAvailableSystemDefs()
<BUG>: dataCollectionConfigDao.getAvailableDataCollectionGroups();
for (IncludeCollectionWrapper obj : container.getItemIds()) {
</BUG>
if (obj.getType().equals(selected)) {
values.remove(obj.getValue());

String selected = (String) typeField.getValue();
if (selected == null) {
return;
}
List<String> values = selected.equals(IncludeCollectionWrapper.SYSTEM_DEF) ? dataCollectionConfigDao.getAvailableSystemDefs()
: dataCollectionConfigDao.getAvailableDataCollectionGroups();
for (Object itemId : container.getItemIds()) {
IncludeCollectionWrapper obj = container.getItem(itemId).getBean();
if (obj.getType().equals(selected)) {
values.remove(obj.getValue());
