if (!valuesCache.containsKey(aKey)) {
Object value = map.get(aKey);
-// ML: this unfortunately doesn't work, because the entity doesn't seem to store
-// fields with null values
-// if (value == null && !map.containsKey(aKey))
-// throw new TemplateModelException("MapAdapter: no key "+aKey+" available");
+ if (value == null && !map.containsKey(aKey))
+ throw new TemplateModelException("MapAdapter: no key "+aKey+" available");
valuesCache.put(aKey, makeAdapter(value));
}