if (po.getDeploymentStatus().isFailed()) {
throw new DeploymentException("Unable to redeploy "
+ (module == null ? plan.getName() : module.getName()) + ": "
+ po.getDeploymentStatus().getMessage());
}
po = mgr.start(po.getResultTargetModuleIDs());
waitForProgress(consoleReader, po);
TargetModuleID[] resultsDeployment = po.getResultTargetModuleIDs();
for (int i = 0; i < resultsDeployment.length; i++) {
TargetModuleID result = resultsDeployment[i];
consoleReader.printString(DeployUtils.reformat("Deployed"