}
public void exceptionCaught(IoSession ioSession, Throwable cause) throws Exception {
AbstractSession session = AbstractSession.getSession(ioSession, true);
if (session != null) {
session.exceptionCaught(cause);
} else {
throw new IllegalStateException("No session available", cause);
}
}