log.log(Level.INFO,
"DefaultMessageHandler addListener type: " + listener.getClass().getName(),
new Exception("log the stack"));
// Let all interested listeners know if this is a new WebInspector.
if (listener instanceof WebInspector) {
WebInspector inspector = (WebInspector) listener;
for (MessageListener curListener : listeners) {
if (curListener instanceof ConnectListener) {
((ConnectListener) curListener).onConnect(inspector);
}
}