class DefaultChannelPipeline implements ChannelPipeline {

    @Override
    public final ChannelHandlerContext lastContext() {
        AbstractChannelHandlerContext last = tail.prev;
        if (last == head) {
            return null;
        }
        return last;
    }

    protected  DefaultChannelPipeline(Channel channel);

}