protected function processResourceCollectionDocument($source): ResourceCollectionDocument
    {
        $document = new ResourceCollectionDocument();

        foreach ($source->data as $resourceSrc)
        {
            $document->addResource($this->hydrateResource($resourceSrc));
        }

        $this->hydrateObject($document, $source);

        return $document;
    }