private function getResponseWithBody(Response $responseConfig, ResponseInterface $httpResponse)
 {
     if ($responseConfig->getBody()) {
         $httpResponse = $httpResponse->withBody(new StringStream($responseConfig->getBody()));
     }
     return $httpResponse;
 }