try {
lock.writeLock().lock();
cacheMiss++;
ConstrettoBuilder builder = new ConstrettoBuilder(includeSystemProperties);
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);
builder = builder.addConfigurationStore(propertyFileConfigurationStore);
if(includeSystemProperties){