@Override
public void writeRequested(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
Object msg = e.getMessage();
if (msg instanceof BaseMessage) {
BaseMessage message = (BaseMessage) msg;
message.handleMessage(this, ctx.getChannel());
} else {
ctx.sendDownstream(e);
}
}