private static function closeConnection()
 {
     if (self::$curl != null) {
         curl_close(self::$curl);
     }
     self::$curl = null;
 }
 private static function closeConnection()
 {
     KalturaLog::debug("Closing connection");
     if (self::$curl != null) {
         curl_close(self::$curl);
     }
     self::$curl = null;
 }