dProps.setProperty(DeploymentProperties.ENABLE, enableFlag.toString());
if (addFlag)
progressObject = df.createAppRef(df.createTargets(targetNames), appName, dProps);
else
progressObject = df.deleteAppRef(df.createTargets(targetNames), appName, dProps);
DeploymentStatus status = df.waitFor(progressObject);
checkDeployStatus(status, handlerCtx, true);
}
}