public void remove(String identifier,ActiveConnectionRecord record){
synchronized (records) {
    Set<ActiveConnectionRecord> connections=records.get(identifier);
    assert (connections != null);
    connections.remove(record);
    if (connections.isEmpty())     records.remove(identifier);
  }
}

public void remove ( String identifier , ActiveConnectionRecord record ) { synchronized ( records ) { Set < ActiveConnectionRecord > connections = records . get ( identifier ) ; assert ( connections != null ) ; connections . remove ( record ) ; if ( connections . isEmpty ( ) ) records . remove ( identifier ) ; } }
removes the given connection record from the list of active connections associated with the object having the given identifier .
