continue;
}
final String value = entry.getValue();
try {
final ConfigurationLocation location = configurationLocationFactory().create(
project, value);
final Map<String, String> properties = new HashMap<String, String>();
final int index = Integer.parseInt(entry.getKey().substring(LOCATION_PREFIX.length()));
final String propertyPrefix = PROPERTIES_PREFIX + index + ".";
// loop again over all settings to find the properties belonging to this configuration
// not the best solution, but since there are only few items it doesn't hurt too much...
for (Map.Entry<String, String> innerEntry : storage.entrySet()) {
if (innerEntry.getKey().startsWith(propertyPrefix)) {
final String propertyName = innerEntry.getKey().substring(propertyPrefix.length());
properties.put(propertyName, innerEntry.getValue());
}
}
location.setProperties(properties);
locations.add(location);
} catch (IllegalArgumentException e) {
LOG.error("Could not parse location: " + value, e);
}