server.setAcceptListener(new AcceptListener() {
public void onAccept(Channel channel) {
RequestChannel requestChannel=null;
try {
SynchChannel synchChannel = AsynchToSynchChannelAdapter.adapt(channel);
SocketMetadata socket = (SocketMetadata) synchChannel.narrow(SocketMetadata.class);
socket.setTcpNoDelay(true);
requestChannel = createRequestChannel(synchChannel);
RequestChannelInterceptorInvoker invoker = new RequestChannelInterceptorInvoker(loginServiceInterceptor, loginService.getClass().getClassLoader() );
requestChannel.setRequestListener(invoker);