public void removeById(long id) throws NoIdException {
        if (identityMap.containsKey(id)) {
            identityMap.remove(id);
        } else {
            throw new NoIdException(id);
        }
    }