updateDetermineRequirementsTask(); }   if (logger.isInfoEnabled()) { printInfo("Added orgActivity!: "+selfOrgAct+"\ndone"); } }
  protected void watchAddedSelfOrgDeployAct(OrgActivity selfOrgAct) {    if (logger.isInfoEnabled()) {      printInfo("Adding orgActivity!: " + selfOrgAct + "\nbegin");    }    replaceDeployPlan(selfOrgAct);    if (didRehydrate ()) {      printInfo(">>> Enter Rehydrate Handling of SelfOrg");      if (getDetermineRequirementsTask() != null) {	int count = 0;	if (getDetermineRequirementsTask().getPlanElement () != null) {	  Expansion exp = (Expansion) getDetermineRequirementsTask().getPlanElement ();	  for (Enumeration enum = exp.getWorkflow().getTasks(); enum.hasMoreElements();) {	    Task subtask = (Task)enum.nextElement();	    if (subtask.getVerb().equals(Constants.Verb.TRANSPORT)){ // defensive, should always be TRANSPORT	      count++;	    }	  }	}	if (count < 2)  // note: causes (re)-expand if planElement is null.	  updateDetermineRequirementsTask(); // (re)-expand the dr task      }      printInfo(">>> Exit Rehydrate Handling of SelfOrg");    } else {