throw new RuntimeException(e);
}
assert client != null;
// wrap it in a message connection and register with event loop
ProtoConnection connection = new ProtoConnection(new NonBlockingConnection(client));
eventLoop.registerRead(client, new EventCallbackWrapper(connection));
// SelectionKey clientKey = connection.register(selector);
// clientKey.attach(connection);
// eventQueue.add(new Event(connection, null));