// /META-INF/services/org.socialmusicdiscovery.server.api.mediaimport.ImageProvider
Map<String, BrowseService> browseServices = new HashMap<String, BrowseService>();
ServiceLoader<BrowseService> pluginLoader = ServiceLoader.load(BrowseService.class);
Iterator<BrowseService> it = pluginLoader.iterator();
while (it.hasNext()) {
BrowseService browseService = it.next();
serviceManager.addBrowseService(browseService.getObjectType(), browseService.getClass());
}
}
return serviceManager;
}