if (urls != null && ! urls.isEmpty()) {
logger.info("Loading the storage plugin configs from URLs {}.", urls);
Map<String, URL> pluginURLMap = Maps.newHashMap();
for (URL url :urls) {
String pluginsData = Resources.toString(url, Charsets.UTF_8);
StoragePlugins plugins = context.getConfig().getMapper().readValue(pluginsData, StoragePlugins.class);
for (Map.Entry<String, StoragePluginConfig> config : plugins) {
if (!pluginSystemTable.putIfAbsent(config.getKey(), config.getValue())) {
logger.warn("Duplicate plugin instance '{}' defined in [{}, {}], ignoring the later one.",
config.getKey(), pluginURLMap.get(config.getKey()), url);
continue;