private void removeListener(ServiceRegistryEventListener listener, List<ServiceRegistryEventListener> listeners) {
for (Iterator<ServiceRegistryEventListener> iterator = listeners.iterator(); iterator.hasNext();) {
ServiceRegistryEventListener currentListener = iterator.next();
if (currentListener == listener) {
iterator.remove();
if (logger.isDebugEnabled())
logger.debug("Removed service registry listener " + listener);