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);
} catch (Throwable t) {
logger.log(Level.WARNING, "Unable to convert property {0} of node {1}: {2}", new Object[]{referenceKeyProperty, _data, t.getMessage()});
}