code: public static boolean replaceEntry(File zip, String path, File file, File destZip) {
      return replaceEntry(zip, new FileSource(path, file), destZip);
    }
docs: Copies an existing ZIP file and replaces a given entry in it.
  
  @param zip
  an existing ZIP file (only read).
  @param path
  new ZIP entry path.
  @param file
  new entry.
  @param destZip
  new ZIP file created.
  @return <code>true</code> if the entry was replaced.