$this->
finalizeExport($productExport,
$filePath);
} private function getContext(ProductExportPartialGeneration
$productExportPartialGeneration): Context
{ $context =
$this->salesChannelContextFactory->
create( Uuid::
randomHex(),
$productExportPartialGeneration->
getSalesChannelId() );
if ($context->
getSalesChannel()->
getTypeId() !== Defaults::SALES_CHANNEL_TYPE_STOREFRONT
) { throw new SalesChannelNotFoundException();
} return $context->
getContext();
} private function fetchProductExport( ProductExportPartialGeneration
$productExportPartialGeneration,
Context
$context ): ?ProductExportEntity
{ $criteria =
new Criteria([$productExportPartialGeneration->
getProductExportId()]);
$criteria