PlanElement pe = task.getPlanElement(); if (pe == null) { return true; } else { logger.error("Should not publishAdd.  Task" + task + " unexpectedly already has a plan element [" + pe + "]. was about to allocate to Asset: " + org + " from org " + myOrg ); Thread.dumpStack(); } return false;
return true;
    private boolean verifyBeforeAllocation(Task task, Organization org) {      // Do not allocate tasks after they have taken place-AF does this make sense?      if (!(task.beforeCommitment(new Date(inventoryPlugin.currentTimeMillis())))) {	logger.warn("verifyBeforeAllocation: return ... after commitment"+task.getCommitmentDate()+" task:"+task+" to Asset "+org);	// too late to change	return false;      }      PlanElement pe = task.getPlanElement();      if (pe == null) {	return true;      }      else {	logger.error("Should not publishAdd.  Task" + task + 		     " unexpectedly already has a plan element [" +		     pe + "]. was about to allocate to Asset: " + org + " from org " +	             myOrg );	Thread.dumpStack();      }      return false;    }