public void onAccept(Channel channel) {
try {
AsynchChannel asynchChannel = SynchToAsynchChannelAdapter.adapt(channel);
asynchChannel.setAsynchChannelListener(new ServerConnectionHandler(asynchChannel));
asynchChannel.start();
} catch (IOException e) {
onAcceptError(e);
}
}