/**
  * Get prefix for the blob URL
  * 
  * @param boolean $appendContainer Wheather to append container name at the end
  *  
  * @return string Prefix for the blob URL
  */
 public static function getStorageUrlPrefix($appendContainer = true)
 {
     $azure_storage_account_name = WindowsAzureStorageUtil::getAccountName();
     $default_azure_storage_account_container_name = WindowsAzureStorageUtil::getDefaultContainer();
     // Get CNAME if defined
     $cname = WindowsAzureStorageUtil::getCNAME();
     if (!empty($cname)) {
         if ($appendContainer) {
             return $cname . "/" . $default_azure_storage_account_container_name;
         } else {
             return $cname;
         }
     } else {
         $blobStorageHostName = WindowsAzureStorageUtil::getHostName();
         $storageAccountName = WindowsAzureStorageUtil::getAccountName();
         if ($storageAccountName == 'devstoreaccount1') {
             // Use development storage
             if ($appendContainer) {
                 return 'http://' . $blobStorageHostName . '/' . $azure_storage_account_name . '/' . $default_azure_storage_account_container_name;
             } else {
                 return 'http://' . $blobStorageHostName . '/' . $azure_storage_account_name;
             }
         } else {
             // Use cloud storage
             if ($appendContainer) {
                 return 'http://' . $azure_storage_account_name . '.' . $blobStorageHostName . '/' . $default_azure_storage_account_container_name;
             } else {
                 return 'http://' . $azure_storage_account_name . '.' . $blobStorageHostName;
             }
         }
     }
 }