try {
for (Map oneRow : selectedRows) {
fmris[i++]=((Fmri)oneRow.get("fmri")).toString();
}
if (install){
image.installPackages(fmris);
//updateCountInSession(image); No need to update the update count since the count will not change. Only installing new component is allowed.
}else{
image.uninstallPackages(fmris);
}
GuiUtil.setSessionValue("restartRequired", Boolean.TRUE);