private function responseHandler($responseBody)
    {
        if ('json' === $this->outputFormat) {
            return $this->validateJsonResponse($responseBody);
        }

        return $this->validateXmlResponse($responseBody);
    }