// This socket acceptor will handle incoming connections
NioSocketAcceptor acceptor = new NioSocketAcceptor();
// add an IoFilter . This class is responsible for converting the incoming and
// outgoing raw data to ImageRequest and ImageResponse objects
acceptor.getFilterChain().addLast("protocol", new ProtocolCodecFilter(new ImageCodecFactory(false)));
// get a reference to the filter chain from the acceptor
DefaultIoFilterChainBuilder filterChainBuilder = acceptor.getFilterChain();
// add an ExecutorFilter to the filter chain. The preferred order is to put the executor filter