Source:
public static VmInit map(Initialization model, VmInit template) { VmInit entity = template != null ? template : new VmInit(); if (model.isSetHostName()) { entity.setHostname(model.getHostName()); } if (model.isSetDomain()) { entity.setDomain(model.getDomain()); } if (model.isSetTimezone()) { entity.setTimeZone(model.getTimezone()); } if (model.isSetAuthorizedSshKeys()) { entity.setAuthorizedKeys(model.getAuthorizedSshKeys()); } if (model.isSetRegenerateSshKeys()) { entity.setRegenerateKeys(model.isRegenerateSshKeys()); } if (model.isSetDnsServers()) { entity.setDnsServers(model.getDnsServers()); } if (model.isSetDnsSearch()) { entity.setDnsSearch(model.getDnsSearch()); } if (model.isSetWindowsLicenseKey()) { entity.setWinKey(model.getWindowsLicenseKey()); } if (model.isSetRootPassword()) { entity.setRootPassword(model.getRootPassword()); } if (model.isSetCustomScript()) { entity.setCustomScript(model.getCustomScript()); } if (model.isSetNicConfigurations()) { List<VmInitNetwork> networks = new ArrayList<>(); for (NicConfiguration nic : model.getNicConfigurations().getNicConfigurations()) { networks.add(map(nic, null)); } entity.setNetworks(networks); } if (model.isSetInputLocale()) { entity.setInputLocale(model.getInputLocale()); } if (model.isSetUiLanguage()) { entity.setUiLanguage(model.getUiLanguage()); } if (model.isSetSystemLocale()) { entity.setSystemLocale(model.getSystemLocale()); } if (model.isSetUserLocale()) { entity.setUserLocale(model.getUserLocale()); } if (model.isSetUserName()) { entity.setUserName(model.getUserName()); } if (model.isSetActiveDirectoryOu()) { entity.setActiveDirectoryOU(model.getActiveDirectoryOu()); } if (model.isSetOrgName()) { entity.setOrgName(model.getOrgName()); } if (model.isSetCloudInit()) { VmMapper.map(model.getCloudInit(), entity); } return entity; }

Target:
public static VmInit map(Initialization model, VmInit template) { VmInit entity = template != null ? template : new VmInit(); if (model.isSetHostName()) { entity.setHostname(model.getHostName()); } if (model.isSetDomain()) { entity.setDomain(model.getDomain()); } if (model.isSetTimezone()) { entity.setTimeZone(model.getTimezone()); } if (model.isSetAuthorizedSshKeys()) { entity.setAuthorizedKeys(model.getAuthorizedSshKeys()); } if (model.isSetRegenerateSshKeys()) { entity.setRegenerateKeys(model.isRegenerateSshKeys()); } if (model.isSetDnsServers()) { entity.setDnsServers(model.getDnsServers()); } if (model.isSetDnsSearch()) { entity.setDnsSearch(model.getDnsSearch()); } if (model.isSetWindowsLicenseKey()) { entity.setWinKey(model.getWindowsLicenseKey()); } if (model.isSetRootPassword()) { entity.setRootPassword(model.getRootPassword()); } if (model.isSetCustomScript()) { entity.setCustomScript(model.getCustomScript()); } if (model.isSetNicConfigurations()) { List<VmInitNetwork> networks = new ArrayList<>(); for (NicConfiguration nic : model.getNicConfigurations().getNicConfigurations()) { networks.add(map(nic, null)); } entity.setNetworks(networks); } if (model.isSetInputLocale()) { entity.setInputLocale(model.getInputLocale()); } if (model.isSetUiLanguage()) { entity.setUiLanguage(model.getUiLanguage()); } if (model.isSetSystemLocale()) { entity.setSystemLocale(model.getSystemLocale()); } if (model.isSetUserLocale()) { entity.setUserLocale(model.getUserLocale()); } if (model.isSetUserName()) { entity.setUserName(model.getUserName()); } if (model.isSetActiveDirectoryOu()) { entity.setUserName(model.getActiveDirectoryOu()); } if (model.isSetOrgName()) { entity.setOrgName(model.getOrgName()); } if (model.isSetCloudInit()) { VmMapper.map(model.getCloudInit(), entity); } return entity; }