alloc.setEstimatedResult(estAR);
alloc.setEstimatedResult(estAR); if(inventoryPlugin.publishAdd(alloc)) { return true; } else { logger.error("Unable to publish the allocation " + alloc); }
    private boolean allocateTask(Task task) {	Organization provider = findBestSource(task);	if (provider != null) {	    AllocationResult estAR =  createPredictedAllocationResult(task,provider);	    Allocation alloc = buildAllocation(task, provider, providerRole);	    if (estAR != null){		alloc.setEstimatedResult(estAR);	    }	    return publishVerifyAllocation(task,provider, alloc);	}	return false;    }