private void handleMap(Inspector inspector) {
        inspector.traverse((String name, Inspector value) -> {
            switch (value.type()) {
                case OBJECT -> handleInnerMap(name, value);
                case ARRAY -> throw new IllegalArgumentException("Never heard of array inside maps before");
                default -> setMapLeafValue(name, value);
            }
        });
    }
A utility class that can be used to apply a payload to a config builder.

TODO: This can be refactored a lot, since many of the reflection methods are duplicated

@author Ulf Lilleengen
@author hmusum
@author Tony Vaagenes
config/src/main/java/com/yahoo/vespa/config/ConfigPayloadApplier.java