protected Logger logger = Logger.NULL;
@Override
public Image apply(OperatingSystem operatingSystem) {
checkNotNull(operatingSystem, "operatingSystem");
final SoftwareLicense defaultSoftwareLicense = SoftwareLicense.builder().softwareDescription(SoftwareDescription.builder().build()).build();
SoftwareLicense softwareLicense = fromNullable(operatingSystem.getSoftwareLicense()).or(defaultSoftwareLicense);
Optional<String> optOSReferenceCode = fromNullable(softwareLicense.getSoftwareDescription().getReferenceCode());
Optional<String> optVersion = fromNullable(softwareLicense.getSoftwareDescription().getVersion());
Optional<String> optLongDescription = fromNullable(softwareLicense.getSoftwareDescription().getLongDescription());
OsFamily osFamily = OsFamily.UNRECOGNIZED;
String osVersion = UNRECOGNIZED;
Integer bits = null;
if (optOSReferenceCode.isPresent()) {
String operatingSystemReferenceCode = optOSReferenceCode.get();