protected function getHandler($response, $object)
    {
        $handler = null;

        switch ($this->format) {
        case 'json':
            $this->rawResponse = $response->json();
            $handler = new JsonResponseHandler($this->rawResponse, $object);
            break;
        case 'xml':
            $this->rawResponse = $response->xml();
            $handler = new XmlResponseHandler($this->rawResponse, $object);
            break;
        }

        return $handler;
    }