private static void setNull(String name, JsonNode node, Object obj, List<Method> setters) {
        for (Method m : setters) {
            Class argClass = m.getParameters()[0].getType();
            if (!TikaJsonSerializer.PRIMITIVES.contains(argClass)) {
                try {

                    m.invoke(obj, argClass.cast(null));
                    return;
                } catch (Exception e) {
                    e.printStackTrace();
                    //swallow
                }
            }
        }
        throw new IllegalArgumentException("can't set null on " + name);
    }
See the notes @link{TikaJsonSerializer}.
<p>
This currently requires a setString() option on objects that have enum parameters.
tika-serialization/src/main/java/org/apache/tika/serialization/TikaJsonDeserializer.java