private function getShippingCostsVatRateIdentifier(array $entry)
    {
        $taxRateId = $this->getMaxTaxRateFromOrderItems($entry);

        /**
         * @var Tax $taxModel
         */
        $taxModel = $this->taxRepository->findOneBy(['tax' => $taxRateId]);

        $taxRateId = $taxModel->getId();
        if (isset($entry['dispatch']['taxCalculation']) && $entry['dispatch']['taxCalculation'] > 0) {
            $taxRateId = $entry['dispatch']['taxCalculation'];
        }

        $identity = $this->identityService->findOneBy([
            'adapterIdentifier' => (string) $taxRateId,
            'adapterName' => ShopwareAdapter::NAME,
            'objectType' => VatRate::TYPE,
        ]);

        if (null === $identity) {
            throw new NotFoundException('missing tax rate mapping - ' . $taxRateId);
        }

        return $identity->getObjectIdentifier();
    }
private function getShippingCostsVatRateIdentifier(array $entry)
    {
        $taxRateId = $this->getMaxTaxRateFromOrderItems($entry);

        /**
         * @var Tax $taxModel
         */
        $taxModel = $this->taxRepository->findOneBy(['tax' => $taxRateId]);

        $taxRateId = $taxModel->getId();
        if (isset($entry['dispatch']['taxCalculation']) && $entry['dispatch']['taxCalculation'] > 0) {
            $taxRateId = $entry['dispatch']['taxCalculation'];
        }

        $identity = $this->identityService->findOneBy([
            'adapterIdentifier' => (string) $taxRateId,
            'adapterName' => ShopwareAdapter::NAME,
            'objectType' => VatRate::TYPE,
        ]);

        if (null === $identity) {
            throw new NotFoundException('missing tax rate mapping - ' . $taxRateId);
        }

        return $identity->getObjectIdentifier();
    }
@param array $entry

@return string