yaml/src/main/java/com/opentext/ia/yaml/configuration/zip/ZipBuilder.java
public String add(File file, boolean preserveExternalFileName) {
    File existingFile = checkFileExists(file);
    String result = zipPathFor(existingFile, preserveExternalFileName);
    entries.put(existingFile, result);
    return result;
  }
public String add(File file, boolean preserveExternalFileName) {
    File existingFile = checkFileExists(file);
    String result = zipPathFor(existingFile, preserveExternalFileName);
    entries.put(existingFile, result);
    return result;
  }
Add a file to the ZIP.
@param file The file to add
@param preserveExternalFileName Whether external file names are to be preserved as much as possible, or whether
they should be replaced with unique numbers
@return The name of the ZIP entry