private function convertItemStatus(Shipping $shipping, $shippingStatusId)
    {
        foreach ($shipping->getItems() as $shippingItem) {
            // get item
            $item = $shippingItem->getItem();

            // set item status based on current shipping status
            switch ($shippingStatusId) {
                // created
                case ShippingStatusEntity::STATUS_CREATED:
                    // TODO: REMOVE PREVIOUS STATE
                    $this->itemManager->addStatus($item, Item::STATUS_CREATED);
                    break;
                // delivery note
                case ShippingStatusEntity::STATUS_DELIVERY_NOTE:
                    if ($this->isPartiallyItem($shippingItem, true)) {
                        $itemStatus = Item::STATUS_SHIPPING_NOTE_PARTIALLY;
                    } else {
                        $itemStatus = Item::STATUS_SHIPPING_NOTE;

                    }
                    $this->itemManager->addStatus($item, $itemStatus);
                    break;
                // shipped
                case ShippingStatusEntity::STATUS_SHIPPED:
                    if ($this->isPartiallyItem($shippingItem, false)) {
                        $itemStatus = Item::STATUS_SHIPPED_PARTIALLY;
                    } else {
                        $itemStatus = Item::STATUS_SHIPPED;

                    }
                    $this->itemManager->addStatus($item, $itemStatus);
                    break;
                case ShippingStatusEntity::STATUS_CANCELED:
                    // TODO: check  if still fully shipped
                    $this->itemManager->removeStatus($item, Item::STATUS_SHIPPED);
                    // TODO: check if partially shipped
                    break;
            }
        }
    }