// /META-INF/services/org.socialmusicdiscovery.server.api.mediaimport.ImageProvider
Map<String, ImageProvider> providers = new HashMap<String, ImageProvider>();
ServiceLoader<ImageProvider> pluginLoader = ServiceLoader.load(ImageProvider.class);
Iterator<ImageProvider> it = pluginLoader.iterator();
while (it.hasNext()) {
ImageProvider provider = it.next();
providers.put(provider.getSource(), provider);
}
imageProviderManager = new ImageProviderManager(providers);
}
return imageProviderManager;