for (Iterator listenerIterator = listenerPatterns.entrySet().iterator(); listenerIterator.hasNext();) {
Map.Entry entry = (Map.Entry) listenerIterator.next();
Set patterns = (Set) entry.getValue();
for (Iterator patternIterator = patterns.iterator(); patternIterator.hasNext();) {
AbstractNameQuery pattern = (AbstractNameQuery) patternIterator.next();
if (pattern.matches(source, interfaceTypes)) {
LifecycleListener listener = (LifecycleListener) entry.getKey();
listeners.add(listener);
}
}
}