public function createResponse(Payload $payload)
 {
     $envelope = $this->resourceFactory->createContactCollectionResource();
     foreach ($this->contactStorage->readAll() as $contact) {
         $envelope->addResource('contact-collection', $this->resourceFactory->createContactResource($contact));
     }
     return new Hal\Response($envelope);
 }
 public function createResponse(Payload $payload)
 {
     $envelope = $this->resourceFactory->createClaimCollectionResource();
     foreach ($this->claimStorage->readAll() as $claim) {
         $envelope->addResource('claim-collection', $this->resourceFactory->createClaimResource($claim));
     }
     return new Hal\Response($envelope);
 }