SessionFilter sessionFilter = getSessionFilter();
if (sessionFilter != null) {
// add and IP filter to the filter chain.
acceptor.getFilterChain().addLast("sessionFilter",
new MinaSessionFilter(sessionFilter));
}
acceptor.getFilterChain().addLast("threadPool",
new ExecutorFilter(context.getThreadPoolExecutor()));
acceptor.getFilterChain().addLast("codec",