jdr/jboss-as-jdr/src/main/java/org/jboss/as/jdr/util/JdrZipFile.java
public void add(String content, String path) throws Exception {
        StringBuilder name = new StringBuilder("sos_strings/");

        name.append(this.env.getProductName().replace(" ", "_").toLowerCase());
        name.append("-");
        name.append(this.env.getProductVersion().split("\\.")[0]);
        name.append("/");
        name.append(path);

        this.add(new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8)), name.toString());
    }
public void add(String content, String path) throws Exception {
        StringBuilder name = new StringBuilder("sos_strings/");

        name.append(this.env.getProductName().replace(" ", "_").toLowerCase());
        name.append("-");
        name.append(this.env.getProductVersion().split("\\.")[0]);
        name.append("/");
        name.append(path);

        this.add(new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8)), name.toString());
    }
Adds content to the zipfile at path

path is prepended with the directory reserved for generated text files in JDR

@param content
@param path
@throws Exception