static Map toMapAccordingToHeader(Collection row, L header) { Iterator it = iterator(row); new HashMap map; for i over header: if (!it.hasNext()) break; else map.put(header.get(i), it.next()); ret map; }