implement getFieldValue to retrieve a value of an entity.