server = conn.getServerSocket();
serverSocket = conn.getServerSocket();
    private boolean processNewConnections() {        Iterator iter;        Connection conn;        SocketChannel client;        SocketChannel server;        boolean didSomething = false;        synchronized (newConnections) {            iter = newConnections.iterator();            while (iter.hasNext()) {                conn = (Connection) iter.next();                iter.remove();                client = conn.getClientSocket();                server = conn.getServerSocket();                try {                    //Logger.logOptional("Setting channels to non-blocking mode");                    client.configureBlocking(false);                    server.configureBlocking(false);                    //Logger.logOptional("Registering channels with selector");                    client.register(selector, SelectionKey.OP_READ);                    server.register(selector, SelectionKey.OP_READ);                    clients.put(client, conn);                    servers.put(server, conn);                } catch (IOException e) {                    //Logger.err("Error configuring channels: " + e.getMessage());                    // There was a problem, so forcibly terminate the connection                    closeConnection(conn);                }                didSomething = true;            }        }        return didSomething;    }