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