namedCaches = new HashMap<String, Configuration>(elements.size(), 1.0f);
for (Element e : elements) {
String configurationName = getAttributeValue(e, "name");
if (namedCaches.containsKey(configurationName)) {
namedCaches = null;
throw new DuplicateCacheNameException("Named cache " + configurationName + " is declared more than once!");
}
try {
namedCaches.put(configurationName, parseConfiguration(e));
} catch (ConfigurationException ce) {
throw new ConfigurationException("Problems configuring named cache '" + configurationName + "'", ce);