protected static function getContents()
 {
     /** get contents of front-end page **/
     try {
         if (function_exists('curl_init')) {
             $response = self::curlResponse(self::$_renderUrl);
             // Parse front-end content
             list($head, $body) = explode('</head>', $response->contents);
             list($temp, $head) = explode('<head>', $head);
             list($body, $temp) = explode('</body>', $body);
             $head = preg_replace(array('#<base\\s+href="[^"]+"\\s*/>#', '#<meta\\s+[^>]+/>#', '#<title>[^\\r\\n]+</title>#'), '', $head);
             $body = preg_replace('#<body[^>]*>#', '', $body);
             self::$_contents = array('head' => $head, 'body' => $body);
         } else {
             throw new Exception(JText::_('JSN_EXTFW_ERROR_CURL_NOT_ENABLE'));
         }
     } catch (Exception $e) {
         throw $e;
     }
 }