private static void processNonPrimitive(String name, Set<MethodTuple> setters,
                                            Set<MethodTuple> getters, Document doc, Element element,
                                            Object object) {
        for (MethodTuple setter : setters) {
            for (MethodTuple getter : getters) {
                if (setter.singleParam.equals(getter.singleParam)) {
                    serializeObject(name, doc, element, setter, getter, object);
                    return;
                }
            }
        }
    }
@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