@Override public HttpHeader clone() { HttpHeader httpHeader = new HttpHeader(); for (Map.Entry<String, HeaderEntry> entry : this.headers.entrySet()) { String name = entry.getKey(); HeaderEntry headerEntry = entry.getValue(); List<String> values = headerEntry.getValues(); for (String value : values) { httpHeader.addHeader(name, value); } } return httpHeader; }