} else { if (logger.isDebugEnabled()) { logger.debug("\n New Supply and Project Supply tasks already have a PE!"); } }
  private Collection sortIncomingSupplyTasks(Collection tasks) {    ArrayList expandList = new ArrayList();    ArrayList passThruList = new ArrayList();    Task t;    Inventory inventory;    Asset asset;    for (Iterator i = tasks.iterator(); i.hasNext();) {      t = (Task)i.next();      asset = (Asset)t.getDirectObject();      inventory = findOrMakeInventory(asset);      if (inventory != null) {	expandList.add(t);      } else {  // allocate tasks to supplier?	// BUG!!! These shouldn't already have a PE	if (t.getPlanElement() == null) {	  passThruList.add(t);	} else {	  if (logger.isDebugEnabled()) {	    logger.debug("\n New Supply and Project Supply tasks already have a PE!");	  }	}      }    }    externalAllocator.forwardSupplyTasks(passThruList, myOrganization);    return expandList;  }