private boolean isMapField(NamedBuilder parentBuilder, String name) {
        ConfigBuilder builder = parentBuilder.builder();
        try {
            Field f = builder.getClass().getField(name);
            return f.getType().getName().equals("java.util.Map");
        } catch (Exception e) {
            return false;
        }
    }
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