private KeyValueStore createGameConfig(String mapId) {
Log.d(TAG, "Loading configuration...");
KeyValueStore gameConfig = KeyValueStore.fromResources(mContext.getResources(), R.raw.game_settings);
KeyValueStore entityConfig = new KeyValueStore();
entityConfig.extend(KeyValueStore.fromResources(mContext.getResources(), R.raw.enemy_settings));
entityConfig.extend(KeyValueStore.fromResources(mContext.getResources(), R.raw.tower_settings));
gameConfig.putStore("entities", entityConfig);
MapInfo mapInfo = mMapRepository.getMapById(mapId);
gameConfig.putStore("map", KeyValueStore.fromResources(mContext.getResources(), mapInfo.getMapDataResId()));
gameConfig.extend(KeyValueStore.fromResources(mContext.getResources(), R.raw.waves));
return gameConfig;
}