protected function createMediaForItems($items, $locale)
    {
        foreach ($items as $item) {
            $product = $item->getProduct();
            if ($product) {
                $this->productManager->createProductMedia($product, $locale);
            }
            // Set api product for returning media-urls
            $item->setProduct($product);
        }
    }