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