DeployPlan oldDP = getDeployPlan(); setDeployPlan(null);
watchAddedSelfOrgDeployAct(selfOrgAct);
  protected void watchChangedSelfOrgDeployAct(OrgActivity selfOrgAct) {    if (DEBUG) {      printDebug("Changed orgActivity!: "+selfOrgAct+"\nbegin");    }    DeployPlan oldDP = getDeployPlan();    setDeployPlan(null);    if (DEBUG) {      printDebug("  re-add org activity");    }    watchAddedSelfOrgDeployAct(selfOrgAct);    if (oldDP == null) {      // didn't replace anything      if (DEBUG) {        printDebug("done");      }      return;    }    DeployPlan newDP = getDeployPlan();    if (DEBUG) {      printDebug("  old dp: "+oldDP+"\n  new dp: "+newDP);    }    Task drTask = oldDP.detReqsTask;    if (drTask != null) {      if (newDP != null) {        // kill the old workflow        if (oldDP.expandedWorkflow != null) {          killWorkflow(oldDP.expandedWorkflow);          oldDP.expandedWorkflow = null;        }      }      reprocessDetermineRequirementsTask(drTask);    }    if (DEBUG) {      printDebug("done");    }  }