}
public static Version toWGAVersion(VersionCompliance versionCompliance) {
if (versionCompliance != null) {
if (versionCompliance.getKey().equals(VERSIONCOMPLIANCE_WGA3)) {
return new Version(3, 0, 0);
} else if (versionCompliance.getKey().equals(VERSIONCOMPLIANCE_WGA4)) {
return new Version(4, 0, 0);
} else if (versionCompliance.getKey().equals(VERSIONCOMPLIANCE_WGA41)) {
return new Version(4, 1, 0);
} else if (versionCompliance.getKey().equals(VERSIONCOMPLIANCE_WGA50)) {
return new Version(5, 0 ,0);
} else if (versionCompliance.getKey().equals(VERSIONCOMPLIANCE_WGA51)) {
return new Version(5, 1 ,0);
} else if (versionCompliance.getKey().equals(VERSIONCOMPLIANCE_WGA52)) {
return new Version(5, 2 ,0);
} else if (versionCompliance.getKey().equals(VERSIONCOMPLIANCE_WGA53)) {
return new Version(5, 3 ,0);
} else if (versionCompliance.getKey().equals(VERSIONCOMPLIANCE_WGA54)) {
return new Version(5, 4 ,0);
}
}
return null;
}