124125126127128129130131132
Iterator<Entry<String, String>> it = headers.entrySet().iterator(); Entry<String, String> e; int index=0; while(it.hasNext()){ e = it.next(); rtn[index++]=new HeaderImpl(e.getKey(),e.getValue()); } return rtn; }