if (oldDeployPlan.expandedWorkflow != null) { killWorkflow(oldDeployPlan.expandedWorkflow); }
} Task drTask = getDetermineRequirementsTask(); if (drTask != null) { PlanElement pe = drTask.getPlanElement(); if (pe != null) publishRemove(pe);
  protected void watchRemovedSelfOrgDeployAct(OrgActivity selfOrgAct) {    // throw away the deploy plan    DeployPlan oldDeployPlan = getDeployPlan();    if (oldDeployPlan != null) {      if (logger.isInfoEnabled()) {        printInfo("Remove Deployment Plan!\nOLD:\n"+oldDeployPlan);      }      setDeployPlan(null);      // Kill Associated Expansion      if (oldDeployPlan.expandedWorkflow != null) {        killWorkflow(oldDeployPlan.expandedWorkflow);      }    }  }