private Enumeration getHeaders(String[] names, Map map) {
private Enumeration getHeaders(String[] names, boolean match) { List matches = new ArrayList(names.length); for (int i = 0; i < names.length; i++) { matches.add(names[i].toUpperCase()); }
    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);    }