protected function initDeliveryProfile($cdnHost = null)
 {
     if ($this->deliveryAttributes->getStorageId()) {
         return DeliveryProfilePeer::getRemoteDeliveryByStorageId($this->deliveryAttributes);
     } else {
         $cdnHost = $this->cdnHost;
         $cdnHostOnly = trim(preg_replace('#https?://#', '', $cdnHost), '/');
         return DeliveryProfilePeer::getLocalDeliveryByPartner($this->entryId, $this->deliveryAttributes->getFormat(), $this->deliveryAttributes, $cdnHostOnly);
     }
 }