code: protected function load($record, EncodingParametersInterface $parameters)
      {
          $relationshipPaths = $this->getRelationshipPaths($parameters->getIncludePaths());
          $record->loadMissing($relationshipPaths);
      }
docs: Add eager loading to a record.
  
  @param Model $record
  @param EncodingParametersInterface $parameters