private static void addList(Element param, Document doc, MethodTuple getterTuple,
                                List<String> list) {
        for (String s : list) {
            Element element = doc.createElement("string");
            element.setTextContent(s);
            param.appendChild(element);
        }
    }
@param config  config to serialize
@param mode    serialization mode
@param writer  writer
@param charset charset
@throws Exception
tika-core/src/main/java/org/apache/tika/config/TikaConfigSerializer.java