String sourceEncoding = snapshot.getSourceEncoding().getValue().name();
addSimpleChild(root, SOURCE_ENCODING_NODE, sourceEncoding);
}
if (!snapshot.getPlatform().isDefault()) {
ProjectPlatform platform = snapshot.getPlatform().getValue();
addSimpleChild(root, PLATFORM_NAME_NODE, platform.getName());
addSimpleChild(root, PLATFORM_NODE, platform.getVersion());
}
if (!snapshot.getSourceLevel().isDefault()) {
String sourceLevel = snapshot.getSourceLevel().getValue();
addSimpleChild(root, SOURCE_LEVEL_NODE, sourceLevel);