private Map<DataType, ViewItemValueResolver> defaultDataTypeResolvers = new HashMap<DataType, ViewItemValueResolver>();
private ViewItemValueResolver getSlotResolver(
DataTypeToListMap<String> propertiesByDataType, Slot slot) {
DataType dataType = slot.getDataType();
List<String> properties = propertiesByDataType.get(dataType);
// fallback to default values if there are no corresponding slots
if (properties.isEmpty()) {
return defaultDataTypeResolvers.get(dataType);