class DefaultClientIdRegistry implements ClientIdRegistry {

    @Override
    public boolean unregister(String clientStreamId, ConnectionType type) {
        Map<String, String> connectionTypeMap = clientIdMapPerType.getOrDefault(type, Collections.emptyMap());
        String clientId = connectionTypeMap.remove(clientStreamId);
        return clientId != null;
    }

}