if (resource == null) { if (logger.isErrorEnabled()) { logger.error("<" + supplytype + "> createInventory fail to make prototype for " + id); } return null; } return findOrMakeInventory(supplytype, resource); }
    public synchronized Inventory findOrMakeInventory(String supplytype, Asset resource) {	Inventory inventory = null;	// only need to sync if each processor is running on its own thread.	// currently, ANTS is single-threaded but could easily be made multi-threaded.	String id = resource.getTypeIdentificationPG().getTypeIdentification();	inventory = (Inventory) inventoryHash_.get(id);	if (inventory == null) {	    inventory = createInventory(supplytype, resource);	    if (inventory != null) {		addInventory(inventory, id);		getDelegate().publishAdd(inventory);		GLMDebug.DEBUG("InventoryPlugin", "findOrMakeInventory(), CREATED inventory bin for: "+				  AssetUtils.assetDesc(inventory.getScheduledContentPG().getAsset()));		findOrMakeMILTask(inventory);	    }	}	return inventory;    }