printError("The DeployPlan lacks needed information and is ignored!");
printError("The DeployPlan lacks needed information and is ignored: "+newDP);
  protected void replaceDeployPlan(OrgActivity selfOrgAct) {    // We don't know how long this task will take, so we    // use the default task adjustment duration!    int adjustDurationDays = defaultAdjustDurationDays;    Date prepoStartDate = null;    if (offsetDays > 0) {      // If OffsetDays was specified as an input parameter, use Oplan C Day + offset as       // start date for the Task      Collection oplanCol = query(new OplanByUIDPred(selfOrgAct.getOplanUID()));      // Should be exactly one oplan for an OrgActivity      Oplan oplan = (Oplan) oplanCol.iterator().next();      prepoStartDate = new Date(oplan.getCday().getTime() + (MILLIS_PER_DAY * offsetDays));    }    DeployPlan newDP =       new DeployPlan(selfOrg, selfOrgAct, adjustDurationDays, overrideFromLocation,                       prepoStartDate);    if (logger.isInfoEnabled()) {      printInfo(newDP.toString());    }    if (!newDP.isValid()) {      if (newDP.fromLoc == null)        printError("This Organization lacks a MilitaryPG HomeLocation!");      printError("The DeployPlan lacks needed information and is ignored!");      setDeployPlan(null);    } else {      DeployPlan oldDP = getDeployPlan();      if (oldDP != null) {        if (logger.isInfoEnabled()) {          printInfo("Replace Deployment Plan!\n"+                     "OLD:\n"+oldDP+"\n"+                     "NEW:\n"+newDP);        }      }      setDeployPlan(newDP);    }  }