code: static void copyEntry(ZipEntry originalEntry, InputStream in, ZipOutputStream out, boolean preserveTimestamps) throws IOException {
      ZipEntry copy = copy(originalEntry);
  
      if (preserveTimestamps) {
        TimestampStrategyFactory.getInstance().setTime(copy, originalEntry);
      }
      else {
        copy.setTime(System.currentTimeMillis());
      }
      
      addEntry(copy, new BufferedInputStream(in), out);
    }
docs: Copies a given ZIP entry to a ZIP file. If this.preserveTimestamps is true, original timestamp
  is carried over, otherwise uses current time.
  
  @param originalEntry
  a ZIP entry from existing ZIP file.
  @param in
  contents of the ZIP entry.
  @param out
  target ZIP stream.