public function fetchSubjectXml($ic)
    {
        $url = $this->generateUrl($ic);
        $session = curl_init($url);

        curl_setopt($session, CURLOPT_HEADER, false);
        curl_setopt($session, CURLOPT_RETURNTRANSFER, true);

        if ($this->decorator) {
            $this->decorator->decorate($session);
        }

        $xml = curl_exec($session);

        if($xml === false) {
            throw new HttpException('cURL error: ' . curl_errno($session));
        }

        curl_close($session);

        return $xml;
    }