code: public static void zipTrackedContent( File out, Set<TrackedContent> sealed ) throws IOException
      {
          logger.info( "Writing sealed zip to: '{}'", out.getAbsolutePath() );
  
          try (ZipOutputStream zip = new ZipOutputStream( new FileOutputStream( out ) ))
          {
              for ( TrackedContent f : sealed )
              {
                  String name = SEALED.getValue() + "/" + f.getKey().getId();
  
                  logger.trace( "Adding {} to zip", name );
                  zip.putNextEntry( new ZipEntry( name ) );
                  copy( toInputStream( f ), zip );
              }
          }
      }
docs: Write sealed records to a zip file.