private void discard(List<String> list, String name) {
        List<String> tmp = new ArrayList<>();
        tmp.add(name);
        list.removeAll(tmp);
    }
Remove all instances of name from list.
jrt/src/com/yahoo/jrt/slobrok/api/Register.java