private function _buildNestedResource($table, $primaryKey, $id)
{
$parentAssociation = $this->requestContainer->getParentAssociation();
$instance = $this->builder->where($primaryKey, '=', $id)->where($table . '.' . head(array_keys($parentAssociation)), '=', head($parentAssociation))->first();
return $instance;
}