public function getEntityCollectionAction(Request $request)
 {
     $entity = $this->resource->getEntity($request);
     $rel = $this->getRelFromEntityCollectionRoute($request);
     $formDescription = $this->resource->createEntityCollectionSearchFormDescription($entity, $rel, $request);
     $pager = $this->resource->getEntityCollectionPager($entity, $formDescription->getData(), $rel);
     $entitiesRepresentation = $this->resource->normalizeEntityCollection($entity, $rel, $pager, $formDescription);
     return $this->viewHandler->handle(View::create($entitiesRepresentation));
 }