logger.warn("No "+providerRole+" for task " + task.getUID() + ", during "+ getTimeUtils().dateString(getTaskUtils().getEndTime(task))+". Will retry.");
stagedErrorLog("No "+providerRole+" for task " + task.getUID() + ", during "+ getTimeUtils().dateString(getTaskUtils().getEndTime(task))+". Will retry.");
  private Organization findBestSource(Task task) {    Enumeration support_orgs;    if (getTaskUtils().isProjection(task)) {      /* For a projection, should be time-phased as support      changes over time. We ignore that, for now */      support_orgs = getAssetUtils().getSupportingOrgs(inventoryPlugin.getMyOrganization(),                                                       providerRole,                                                       getTaskUtils().getStartTime(task),                                                       TaskUtils.getEndTime(task));    } else {      support_orgs = getAssetUtils().getSupportingOrgs(inventoryPlugin.getMyOrganization(),                                                       providerRole,                                                       getTaskUtils().getEndTime(task));    }    if (support_orgs.hasMoreElements()) {      // For now, returning the first supporting org during the time span      return (Organization)support_orgs.nextElement();    }    else {      String itemId = task.getDirectObject().getTypeIdentificationPG().getTypeIdentification();      if (getTaskUtils().isProjection(task)) {        logger.warn("No "+providerRole+" for task " + task.getUID() + ", during ["+                    getTimeUtils().dateString(getTaskUtils().getStartTime(task))+                    "-" +                    getTimeUtils().dateString(TaskUtils.getEndTime(task)) +"]"+". Will retry.");      } else {        logger.warn("No "+providerRole+" for task " + task.getUID() + ", during "+                    getTimeUtils().dateString(getTaskUtils().getEndTime(task))+". Will retry.");      }      // prevents same error message from being printed many times.// 	    if (!noResupply.contains(itemId)) {// 		logger.debug("findBestSource() <"+ providerRole +// 			   "> allocateRefillTask no best source for "+itemId);// 		noResupply.addElement(itemId);// 	    }    }    return null;  }