private function getStylesheetContent($path)
    {
        if ($this->isExternalStylesheet($path)) {
            $cssData = $this->getRequestHandler()->getContent($path);
        } else {
            if (file_exists($path)) {
                $cssData = file_get_contents($path);
            } else {
                return;
            }
        }

        $cssData = $this->replaceLocalUrlTags($cssData);

        return "<style type=\"text/css\">\n" . $cssData . '</style>';
    }