public function getResource(WarehouseResource $entity)
 {
     try {
         $guzzleResponse = $this->guzzle->get($entity->getResource());
         $response = $this->convertResponse($guzzleResponse);
         $response->setEntity($this->serializer->deserialize((string) $guzzleResponse->getBody(), get_class($entity), 'json', DeserializationContext::create()->setGroups(['Default', 'get'])));
         return $response;
     } catch (RequestException $e) {
         return $this->convertResponse($e->getResponse());
     }
 }