for (Connection remoteConn : remote.conns)
if (remoteConn.isInstalled() && remoteConn.isServer())
for (Connection conn : conns)
if (conn.isInstalled() && conn.isCompatible(remoteConn))
return new CompatibleConnection(conn, remoteConn);
throw new IncompatibleConnectionException(
"No compatible connection to " + remote + " available on " + this);
}