Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put(DebugOptions.LISTENER_SYMBOLICNAME, plugin.getBundle().getSymbolicName());
BundleContext ctx = plugin.getBundle().getBundleContext();
return ctx.registerService(new String[] { DebugOptionsListener.class.getName(), Logger.class.getName() },
new Tracer(plugin), props);
}