IniFileConfigurationStore iniFileConfigurationStore = new IniFileConfigurationStore();
PropertiesStore propertyFileConfigurationStore = new PropertiesStore();
for (String location : locations) {
if (location.toLowerCase().endsWith(".ini")) {
iniFileConfigurationStore.addResource(Resource.create(location));
} else if (location.toLowerCase().endsWith(".properties")) {
propertyFileConfigurationStore.addResource(Resource.create(location));
}
}
builder = builder.addConfigurationStore(iniFileConfigurationStore);