private function _assignEntityToResponse($body, ehough_shortstop_api_HttpResponse $response, $debugging)
 {
     if ($debugging) {
         $this->getLogger()->debug('Assigning (possibly empty) entity to response');
     }
     $entity = new ehough_shortstop_api_HttpEntity();
     $entity->setContent($body);
     $entity->setContentLength(strlen($body));
     $contentType = $response->getHeaderValue(ehough_shortstop_api_HttpResponse::HTTP_HEADER_CONTENT_TYPE);
     if ($contentType !== null) {
         $entity->setContentType($contentType);
     }
     $response->setEntity($entity);
 }