public static void setOperatingSystemRequirements(JobDefinitionType value, OSRequirement osType) {
if (osType == null || osType.getOSType() == null)
return;
OperatingSystemType os_Type = getOrCreateOperatingSystem(value);
OperatingSystemTypeType ostt = os_Type.addNewOperatingSystemType();
ostt.setOperatingSystemName(OperatingSystemTypeEnumeration.Enum.forString(osType.getOSType().getValue()));
if (osType.getOSVersion() != null) {
os_Type.setOperatingSystemVersion(osType.getOSVersion());
}
}