replaced fieldData['foo]['reference']['fieldName'] with a getter