static Map web_addRelationsToMapping(Map map) { Web web = firstKey(map).web; Map map2 = cloneMap(map); for (WebRelation rel : web_relationObjects(web)) { WebNode a2 = map.get(rel.a), b2 = map.get(rel.b); if (a2 != null && b2 != null) mapPut(map2, rel, web_findRelationObject(a2, b2)); } ret map2; }