printDebug("allocateTask() <"+supplyType_+ "> allocateRefillTask no best source for "+itemId); notified_.addElement(itemId); }
if (logger.isDebugEnabled()) { logger.debug("allocateTask() <" + supplyType_ + "> allocateRefillTask no best source for " + itemId); } notified_.addElement(itemId); }
    protected void allocateTask(Task task) {	String itemId = task.getDirectObject().getTypeIdentificationPG().getTypeIdentification();	Organization provider = findBestSource(task);	if (provider == null) {	    // prevents same error message from being printed many times.	    if (!notified_.contains(itemId)) {		printDebug("allocateTask() <"+supplyType_+			   "> allocateRefillTask no best source for "+itemId);		notified_.addElement(itemId);	    }	} else {// 	    printDebug("allocateRefillTask "+task+" to "+provider);	    AllocationResult ar =  new AllocationResultHelper(task, null).getAllocationResult(1.0);	    publishAllocation(task, provider, providerRole_, ar);	}    }