@Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        ProtocolCode protocolCode = ctx.channel().attr(Connection.PROTOCOL).get();
        Protocol protocol = ProtocolManager.getProtocol(protocolCode);
        protocol.getCommandHandler().handleCommand(
            new RemotingContext(ctx, new InvokeContext(), serverSide, userProcessors), msg);
        ctx.fireChannelRead(msg);
    }
Dispatch messages to corresponding protocol.

@author jiangping
@version $Id: RpcHandler.java, v 0.1 2015-12-14 PM4:01:37 tao Exp $
src/main/java/com/alipay/remoting/rpc/RpcHandler.java