public function findReferenceByView(View $view)
    {
        $referenceId = ViewReferenceHelper::generateViewReferenceId($view);
        $reference = $this->getOneReferenceByParameters(['id' => $referenceId], false);
        $transformer = $this->transformer->getViewReferenceTransformer(
            (string) $reference['viewNamespace'], 'array'
        );

        return  $transformer->transform($reference);
    }