/* 177 */ ListenerRegistration registration = null;
/* 178 */ synchronized (this.listeners)
/* */ {
/* 180 */ ArrayList registrations = (ArrayList)this.listeners.get(listener);
/* 181 */ if (registrations == null) {
/* 182 */ throw new ListenerNotFoundException("No registristrations for listener not listener=" + listener + " filter=" + filter + " handback=" + handback);
/* */ }
/* */
/* 185 */ registration = new DefaultListenerRegistration(listener, filter, handback);
/* 186 */ int index = registrations.indexOf(registration);
/* 187 */ if (index == -1) {
/* 188 */ throw new ListenerNotFoundException("Listener not found listener=" + listener + " filter=" + filter + " handback=" + handback);
/* */ }
/* */
/* 191 */ HashMap newListeners = (HashMap)this.listeners.clone();
/* */
/* 193 */ registrations = (ArrayList)registrations.clone();