session.getFilterChain().addLast( "codec", new ProtocolCodecFilter( codecFactory ) ); session.getFilterChain().addLast( "log", new LoggingFilter() );
    public void sessionCreated( IoSession session ) throws Exception    {        session.setAttribute( CONTEXT, new SimpleReplicationContext( service, serviceCfg, configuration, session ) );        session.getFilterChain().addLast(                "codec", new ProtocolCodecFilter( codecFactory ) );        session.getFilterChain().addLast(                "log", new LoggingFilter() );    }