public function toObjects()
    {
        if ($this->getResponseType() == 'application/json')
        {
            $response = $this->convertJsonToObjects($this->getBody());
        }
        elseif ($this->getResponseType() == 'application/binary')
        {
            $response = $this->convertSerializedToObjects($this->getBody());
        }
        else
        {
            $response = null;
        }

        if ( ! $response)
        {
            $this->throwResponseConversionException();
        }

        return $response;
    }