/**
  * INTERNAL: Return the value to be stored in the object's attribute. This value is determined by
  * the batchQuery. In this case, extract the result from the query.
  */
 public Object valueFromBatchQuery(
     ReadQuery batchQuery,
     AbstractRecord row,
     ObjectLevelReadQuery originalQuery,
     CacheKey parentCacheKey) {
   return getForeignReferenceMapping()
       .extractResultFromBatchQuery(
           batchQuery, parentCacheKey, row, originalQuery.getSession(), originalQuery);
 }