Source:
private void upgradeOvirtNode(final VDS host) { InstallModel model = new InstallModel(); model.setVds(host); setWindow(model); model.setTitle(ConstantsManager.getInstance().getConstants().installHostTitle()); model.setHelpTag(HelpTag.upgrade_host); model.setHashName("install_host"); model.getOVirtISO().setIsAvailable(false); model.getOverrideIpTables().setIsAvailable(false); model.getActivateHostAfterInstall().setEntity(true); model.getHostVersion().setEntity(host.getHostOs()); model.getHostVersion().setIsAvailable(false); getWindow().startProgress(null); AsyncDataProvider.getInstance().getoVirtISOsList(new AsyncQuery(model, new INewAsyncCallback() { @Override public void onSuccess(Object target, Object returnValue) { InstallModel model = (InstallModel) target; ArrayList<RpmVersion> isos = (ArrayList<RpmVersion>) returnValue; Collections.sort(isos, new Comparator<RpmVersion>() { @Override public int compare(RpmVersion rpmV1, RpmVersion rpmV2) { return RpmVersionUtils.compareRpmParts(rpmV2.getRpmName(), rpmV1.getRpmName()); } }); model.getOVirtISO().setItems(isos); model.getOVirtISO().setSelectedItem(Linq.firstOrDefault(isos)); model.getOVirtISO().setIsAvailable(true); model.getOVirtISO().setIsChangeable(!isos.isEmpty()); model.getHostVersion().setIsAvailable(true); if (isos.isEmpty()) { model.setMessage(ConstantsManager.getInstance().getConstants() .thereAreNoISOversionsVompatibleWithHostCurrentVerMsg()); } if (host.getHostOs() == null) { model.setMessage(ConstantsManager.getInstance().getConstants() .hostMustBeInstalledBeforeUpgrade()); } addUpgradeCommands(model, host, isos.isEmpty()); getWindow().stopProgress(); } }), host.getId()); }

Target:
private void upgradeOvirtNode(final VDS host) { InstallModel model = new InstallModel(); model.setVds(host); setWindow(model); model.setTitle(ConstantsManager.getInstance().getConstants().installHostTitle()); model.setHelpTag(HelpTag.upgrade_host); model.setHashName("upgrade_host"); model.getOVirtISO().setIsAvailable(false); model.getOverrideIpTables().setIsAvailable(false); model.getActivateHostAfterInstall().setEntity(true); model.getHostVersion().setEntity(host.getHostOs()); model.getHostVersion().setIsAvailable(false); getWindow().startProgress(null); AsyncDataProvider.getInstance().getoVirtISOsList(new AsyncQuery(model, new INewAsyncCallback() { @Override public void onSuccess(Object target, Object returnValue) { InstallModel model = (InstallModel) target; ArrayList<RpmVersion> isos = (ArrayList<RpmVersion>) returnValue; Collections.sort(isos, new Comparator<RpmVersion>() { @Override public int compare(RpmVersion rpmV1, RpmVersion rpmV2) { return RpmVersionUtils.compareRpmParts(rpmV2.getRpmName(), rpmV1.getRpmName()); } }); model.getOVirtISO().setItems(isos); model.getOVirtISO().setSelectedItem(Linq.firstOrDefault(isos)); model.getOVirtISO().setIsAvailable(true); model.getOVirtISO().setIsChangeable(!isos.isEmpty()); model.getHostVersion().setIsAvailable(true); if (isos.isEmpty()) { model.setMessage(ConstantsManager.getInstance().getConstants() .thereAreNoISOversionsVompatibleWithHostCurrentVerMsg()); } if (host.getHostOs() == null) { model.setMessage(ConstantsManager.getInstance().getConstants() .hostMustBeInstalledBeforeUpgrade()); } addUpgradeCommands(model, host, isos.isEmpty()); getWindow().stopProgress(); } }), host.getId()); }