private ServiceTracker<CommandSessionListener, CommandSessionListener> trackListeners(BundleContext context) {
return new ServiceTracker<CommandSessionListener, CommandSessionListener>(context, CommandSessionListener.class.getName(), null) {
@Override
public CommandSessionListener addingService(ServiceReference<CommandSessionListener> reference) {
CommandSessionListener listener = super.addingService(reference);
addListener(listener);
return listener;
}
@Override