code: public void sessionOpened(IoSession session) throws Exception {
          SingleSessionIoHandler handler = (SingleSessionIoHandler) session
                  .getAttribute(HANDLER);
          handler.sessionOpened();
      }
docs: Delegates the method call to the
  {@link SingleSessionIoHandler#sessionOpened()} method of the handler
  assigned to this session.