@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; } }
if(kernelVersion != null) { if(os.getKernel() == null) { os.setKernel(new Kernel());