public void remove(String identifier, ActiveConnectionRecord record) {
        synchronized (records) {

            // Get set of active connection records
            Set<ActiveConnectionRecord> connections = records.get(identifier);
            assert(connections != null);

            // Remove old record
            connections.remove(record);

            // If now empty, clean the tracking entry
            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.

@param identifier
    The identifier of the object being disconnected from.

@param record
    The record associated with the active connection.
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/tunnel/ActiveConnectionMultimap.java