}
@Override
public Object addingService(ServiceReference sr) {
logger.info("Adding service: {} {}", sr, sr.getBundle());
FilePlugin plugin = (FilePlugin) context.getService(sr);
FileManager.getInstance().addFilePlugin(plugin);
for (FilePluginObserver obs : observers) {
obs.filePluginAdded(plugin);
}
return plugin;