String name = key.substring(key.lastIndexOf('.') + 1);
Properties p = PropertyFileUtil.parseNestedPropertiesFromLine(getProperty(key), nameValueSpliter, propertyDelimiter);
p.setProperty(KEY_DB_CONNECTION_NAME, name);
checkConnectionPoolProperties(name, p);
if (databaseConnectionsMap.containsKey(name)) {
NamedProperties np = databaseConnectionsMap.get(name);
np.setProperties(p);
}
else {
NamedProperties np = new NamedProperties(name, p);
databaseConnectionsMap.put(name, np);
}
}
else
if (key.startsWith("reference.data")) {
String name = key.substring(key.lastIndexOf('.') + 1);
Properties p = PropertyFileUtil.parseNestedPropertiesFromLine(getProperty(key), nameValueSpliter, propertyDelimiter);
if (referenceDataMap.containsKey(name)) {
NamedProperties np = referenceDataMap.get(name);
np.setProperties(p);
}
else {
NamedProperties np = new NamedProperties(name, p);
referenceDataNames.add(name);
referenceDataMap.put(name, np);
}
}
}