if (refill_changed          ) printLog(prefix + "refill changed."); if (allocatedInventories    ) printLog(prefix + "allocations added/removed."); if (inventory_changed       ) printLog(prefix + "inventory changed."); if (inventory_policy_changed) printLog(prefix + "inventory policy changed.");
if (refill_changed) { if (logger.isDebugEnabled()) { logger.debug(prefix + "refill changed."); } } if (allocatedInventories) { if (logger.isDebugEnabled()) { logger.debug(prefix + "allocations added/removed."); }  } if (inventory_changed) { if (logger.isDebugEnabled()) { logger.debug(prefix + "inventory changed."); } } if (inventory_policy_changed) { if (logger.isDebugEnabled()) { logger.debug(prefix + "inventory policy changed."); } }
  protected Set needUpdate(Set invSet) {    if (invSet == null) invSet = new HashSet();    // Determine if this inventory processor needs to run    // return a set of changed inventories to re-process    boolean refill_changed = checkRefills(refillAllocs_, invSet);    boolean inventory_changed = checkInventories(modifiedInventorySubscription_.getChangedList(), invSet);    boolean inventory_policy_changed = checkInventoryPolicies(inventoryPolicySubscription_, 							      modifiedInventorySubscription_.elements(), invSet);                // Allocations of tasks with quantity > 0 to Inventory objects    // inventoryAllocSubscription_ only used to determine when to run processor.    // Inventory objects held in the plugin.    boolean allocatedInventories = checkInventoryAllocations(inventoryAllocSubscription_, invSet);    if (refill_changed  || allocatedInventories || inventory_changed || inventory_policy_changed) {      String prefix = "<" + supplyType_ + "> UPDATING INVENTORIES: ";      if (refill_changed          ) printLog(prefix + "refill changed.");      if (allocatedInventories    ) printLog(prefix + "allocations added/removed.");      if (inventory_changed       ) printLog(prefix + "inventory changed.");      if (inventory_policy_changed) printLog(prefix + "inventory policy changed.");    }    return invSet;  }