List matchList = buildMatchList(canonicalProperties, canonicalFields);
Map matchedNames = new HashMap();
Iterator matches = matchList.iterator();
while(matches.hasNext()) {
Match match = (Match)matches.next();
String property = (String) propertyMap.get(match.getProperty());
String field = (String) fieldMap.get(match.getField());
matchedNames.put(property, field);
}
return matchedNames;
}