LinkedHashSet<Object> suc = new LinkedHashSet<Object>();
Collection<Exception> exc = new ArrayList<Exception>();
while (iter.hasNext()) {
RegistryObject reg = (RegistryObject) iter.next();
BulkResponse br = null;
Collection<RegistryObject> c = new ArrayList<RegistryObject>();
c.add(reg);
if (reg instanceof javax.xml.registry.infomodel.Association) {
br = saveAssociations(c, true);
}
else if (reg instanceof javax.xml.registry.infomodel.ClassificationScheme) {
br = saveClassificationSchemes(c);
}
else if (reg instanceof javax.xml.registry.infomodel.Concept) {
br = saveConcepts(c);
}
else if (reg instanceof javax.xml.registry.infomodel.Organization) {
br = saveOrganizations(c);
}
else if (reg instanceof javax.xml.registry.infomodel.Service) {
br = saveServices(c);
}
else if (reg instanceof javax.xml.registry.infomodel.ServiceBinding) {
br = saveServiceBindings(c);
}
else {
throw new JAXRException("Delete Operation for " + reg.getClass()
+ " not implemented by Scout");
}
if (br.getCollection() != null) {
suc.addAll(br.getCollection());