{
Element itemElement = (Element)itemIterator.next();
int id = Integer.parseInt(itemElement.attributeValue("id"));
int minCount = Integer.parseInt(itemElement.attributeValue("min_count"));
int maxCount = itemElement.attributeValue("max_count") == null ? minCount : Integer.parseInt(itemElement.attributeValue("max_count"));
restorationGroup.addRestorationItem(new RestorationItem(id, minCount, maxCount));
}
restorationInfo.addRestorationGroup(restorationGroup);
}
(getHolder()).addRestorationInfo(restorationInfo);
}