public function export($product) {
        $productLineName = $product->getProductLine()->getName();
        $files = $product->generateFiles();
        $zip = $this->open();
        
        if (count($files) === 0)
            $files[] = new fphp\File\TextFile("NOTICE", "No files were generated.");
        
        foreach ($files as $file)
            if (!$file->getContent()->addToZip($zip, fphp\Helper\Path::join($productLineName, $file->getTarget())))
                throw new ZipExporterException("could not add file to zip archive at \"$this->target\"");
        
        $this->close($zip);
    }