return (String[]) list.toArray(STRING_ARRAY);
List result = new LinkedList(); Iterator it = headers.iterator(); while (it.hasNext()) { Header element = (Header) it.next(); result.add(element.getValue()); } return (String[]) result.toArray(STRING_ARRAY);
    public String[] getHeader(String name) {        List list = getHeaderList(name);        if (list == null) {            return null;        } else {            return (String[]) list.toArray(STRING_ARRAY);        }    }