for (int i = 0; i < names.length; i++) { String name = names[i]; List list = (List) map.get(name); if (list != null) { result.addAll(list);
Iterator entries = _headers.entrySet().iterator(); while (entries.hasNext()) { Map.Entry entry = (Map.Entry) entries.next(); if (matches.contains(entry.getKey()) == match) { result.addAll((Collection) entry.getValue());
    private Enumeration getHeaders(String[] names, Map map) {        List result = new LinkedList();        for (int i = 0; i < names.length; i++) {            String name = names[i];            List list = (List) map.get(name);            if (list != null) {                result.addAll(list);            }        }        return Collections.enumeration(result);    }