@Override public GuestOperatingSystem adapt(V3GuestOperatingSystem from) { GuestOperatingSystem to = new GuestOperatingSystem(); if (from.isSetArchitecture()) { to.setArchitecture(from.getArchitecture()); } if (from.isSetCodename()) { to.setCodename(from.getCodename()); } if (from.isSetDistribution()) { to.setDistribution(from.getDistribution()); } if (from.isSetFamily()) { to.setFamily(from.getFamily()); } if (from.isSetKernel()) { to.setKernel(adaptIn(from.getKernel())); } if (from.isSetVersion()) { to.setVersion(adaptIn(from.getVersion())); } return to; } }
os.setDistribution(entity.getGuestOsDistribution()); String kernelVersionString = entity.getGuestOsKernelVersion(); if(StringUtils.isNotEmpty(kernelVersionString)) {