// /META-INF/services/org.socialmusicdiscovery.server.api.mediaimport.PostProcessor
Map<String, PostProcessor> postProcessors = new HashMap<String,PostProcessor>();
ServiceLoader<PostProcessor> postProcessorLoader = ServiceLoader.load(PostProcessor.class);
Iterator<PostProcessor> postProcessorIterator = postProcessorLoader.iterator();
while(postProcessorIterator.hasNext()) {
PostProcessor postProcessor = postProcessorIterator.next();
postProcessors.put(postProcessor.getId(),postProcessor);
}
mediaImportManager = new MediaImportManager(mediaImporters, postProcessors);
}
return mediaImportManager;
}