/** @return the established connection specified by the connection model, null if non-existent */
 public GnutellaConnection getEstablishedConnection(ConnectionModel model) {
   GnutellaConnection connection = null;
   synchronized (establishedConnections) {
     int size = establishedConnections.size();
     for (int i = 0; i < size; i++) {
       connection = (GnutellaConnection) establishedConnections.get(i);
       if (model.equals(connection.getConnectionModel())) break;
     }
   }
   return connection;
 }