private void handleValue(Inspector inspector) {
        switch (inspector.type()) {
            case NIX, BOOL, LONG, DOUBLE, STRING, DATA -> handleLeafValue(inspector);
            case ARRAY -> handleARRAY(inspector);
            case OBJECT -> handleOBJECT(inspector);
            default -> {
                assert false : "Should not be reached";
            }
        }
    }
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