for (int i=0; i<getExtensionCount(); i++) {
ExtensionHook hook = (ExtensionHook) hookList.get(i);
List<SiteMapListener> listenerList = hook.getSiteMapListenerList();
for (int j=0; j<listenerList.size(); j++) {
try {
SiteMapListener listener = (SiteMapListener) listenerList.get(j);
if (listener != null) {
siteMapPanel.addSiteMapListenner(listener);
}
} catch (Exception e) {
// ZAP: Log the exception