/**
  * Sets the headers for our request
  *
  * @param Request $request
  */
 private function setHeaders(Request $request)
 {
     $headers = $this->authenticator->getHeader();
     if ($headers == null) {
         throw new OrderException();
     }
     $request->setHeaders($headers);
 }
 /**
  * Sets the headers
  *
  * @param Request $request
  */
 private function setHeaders(Request $request)
 {
     $headers = array('Content-Type' => 'application/json', 'Authorization' => 'Basic ' . $this->authenticator->getRaw());
     $request->setHeadersFromArray($headers);
 }