while (resources.hasMoreElements()) {
URL url = resources.nextElement();
for (CdoUnit cdoUnit : cdoUnitFactory.getCdoUnits(url)) {
CdoUnit existingCdoUnit = result.put(cdoUnit.getName(), cdoUnit);
if (existingCdoUnit != null) {
throw new CdoException("Found more than one CDO unit with name '" + cdoUnit.getName() + "'.");
}
}
}
} catch (IOException e) {
throw new CdoException("Cannot read cdo.xml descriptors.", e);
}
return result;
}