sel.setChannels(Lists.<Channel>newArrayList(chan));
ChannelProcessor chanProc = new ChannelProcessor(sel);
// defaults to UTF-8
MultiportSyslogHandler handler = new MultiportSyslogHandler(
1000, 10, chanProc, new SourceCounter("test"), "port",
new ThreadSafeDecoder(Charsets.UTF_8), portCharsets);
// initialize buffers
handler.sessionCreated(session1);
handler.sessionCreated(session2);