{
String sKey = (String)itr.next();
Object value = referenceMap.findValue(sKey);
if (value != null ||
(itr.getValue() == null && (value = defaultsMap.findValue(sKey)) != null))
{
itr.setValue(value); // override default in template with custom value in schema
}
}