public final void setValue(DefaultValue defaultValue) throws IllegalArgumentException {
        try {
            checkDefaultValue(defaultValue);
            setDefaultValue(defaultValue);
        } catch (IllegalArgumentException e) {
            throw new IllegalArgumentException("Invalid default value", e);
        }
    }
@param defaultValue the value to check.
@throws IllegalArgumentException if the value is illegal according to the node type.
configgen/src/main/java/com/yahoo/config/codegen/LeafCNode.java