protected function getReferencesByMetaData(ModelMetaReference $data, $search = null)
    {
        $references = $this->referenceRepository->getReferencesForModelMetaReference($data, $search)->all();

        return $this->formatReferenceOutput($references);
    }