Iterator it = handlers.values().iterator();
if (it.hasNext())
{
log.debug("removing callback handlers");
ServerInvocationHandler defaultHandler = (ServerInvocationHandler) it.next();
ServerInvocationHandler handler = null;
ServerInvokerCallbackHandler callbackHandler = null;
it = callbackHandlers.values().iterator();
while (it.hasNext())
{
callbackHandler = (ServerInvokerCallbackHandler) it.next();
String subsystem = callbackHandler.getSubsystem();
if (subsystem == null)
handler = defaultHandler;
else
handler = (ServerInvocationHandler) handlers.get(subsystem.toUpperCase());
handler.removeListener(callbackHandler);
}
}
}
else
{