code: private function getCustomerData(array $entry)
      {
          $relations = array_filter($entry['relations'], function (array $relation) {
              return $relation['referenceType'] === 'contact';
          });
  
          if (empty($relations)) {
              return [];
          }
  
          $relation = array_shift($relations);
  
          return $this->customerApi->find($relation['referenceId']);
      }
docs: @param array $entry
  
  @return array