if (ipuh.isCommsApplicationServer()) {
try {
String profile = getOption(PROFILE);
if (peformUpgradeForCommsAppServer(installDir, domainDir, domainName, profile, ipuh.getFromVersion(), ipuh.getToVersion())) {
CLILogger.getInstance().printDetailMessage((getLocalizedString("UpgradeSuccessful")));
ipuh.touchUpgradedToFile();
} else {
throw new CommandException(getLocalizedString("UpgradeFailedForCommsAppServer"));
}
} catch (Exception ex) {
throw new CommandException(getLocalizedString("UpgradeFailedForCommsAppServer"), ex);