if (_version != null && !_version.value().equals(DEFAULT)) {
version = _version.value();
}
}
if (version == null && _generator != null && !_generator.version().equals(DEFAULT)) {
version = _generator.version();
}
if (version != null)
sw.writeAttribute("version", version);
writeTextValue(source, objectContext, context, conventions);