public synchronized User detachUser(String nickname) {
        for (User user : model) {
            if ( user.getNickname().equals(nickname) ) {
                model.remove(user);
                contentChanged();
                return user;
            }
        }

        return null;
    }