private void exportConfig(Writer writer, ConfigInstance cfg) throws IOException {
        List<String> payloadL = ConfigInstance.serialize(cfg);
        String payload = StringUtilities.implodeMultiline(payloadL);
        writer.write(payload);
    }
Returns the value of getName if true, the given number as a string otherwise
config-model/src/main/java/com/yahoo/schema/derived/Derived.java