deleteAppRefOptions.put(DFDeploymentProperties.TARGET, targets[i].getName());
DFCommandRunner commandRunner = getDFCommandRunner(
"delete-application-ref", deleteAppRefOptions, new String[] {moduleID});
DFDeploymentStatus ds = commandRunner.run();
DFDeploymentStatus mainStatus = ds.getMainStatus();
if (!po.checkStatusAndAddStage((TargetImpl)targets[i], localStrings.getLocalString("enterprise.deployment.client.undeploy_remove_ref", "While undeploying, trying to remove reference for application in target {0}", targets[i].getName()), mainStatus)) {
return po;
} else {
TargetModuleIDImpl targetModuleID =
new TargetModuleIDImpl((TargetImpl)targets[i], moduleID);
targetModuleIDList.add(targetModuleID);