PropertyKey referenceKeyProperty = StructrApp.getConfiguration().getPropertyKeyForJSONName(_data.getClass(), referenceKey);
//return getEditModeValue(securityContext, renderContext, _data, referenceKeyProperty, defaultValue);
Object value = _data.getProperty(referenceKeyProperty);
PropertyConverter converter = referenceKeyProperty.inputConverter(securityContext);
if (value != null && converter != null && !(referenceKeyProperty instanceof RelationProperty)) {
try {
value = converter.revert(value);