100101102103104105106107108109110
Registration listenerRegistration = registrations.getFor(target); if (listenerRegistration != null) { try { listenerRegistration.register(listener, target); } catch (Exception e) { throw new RuntimeException(e); }