private static void serializeNonPrimitives(Document doc, Element element,
                                               Object object,
                                               MethodTuples setterTuples,
                                               MethodTuples getterTuples) {

        for (Map.Entry<String, Set<MethodTuple>> e : setterTuples.tuples.entrySet()) {
            Set<MethodTuple> getters = getterTuples.tuples.get(e.getKey());
            processNonPrimitive(e.getKey(), e.getValue(), getters, doc, element, object);
            if (!getterTuples.tuples.containsKey(e.getKey())) {
                LOG.warn("no getter for setter non-primitive: {} in {}", e.getKey(),
                        object.getClass());
                continue;
            }
        }
    }
@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