printError("No "+providerRole_+", during "+TimeUtils.dateString(TaskUtils.getStartTime(task))+ TimeUtils.dateString(TaskUtils.getEndTime(task))); } else { printError("No "+providerRole_+", during "+TimeUtils.dateString(TaskUtils.getEndTime(task))); }
if (logger.isErrorEnabled()) { logger.error("No " + providerRole_ + ", during " + TimeUtils.dateString(TaskUtils.getStartTime(task)) + TimeUtils.dateString(TaskUtils.getEndTime(task))); } } else { if (logger.isErrorEnabled()) { logger.error("No " + providerRole_ + ", during " + TimeUtils.dateString(TaskUtils.getEndTime(task))); } }
    public Organization findBestSource(Task task) {	// PAS FILL THIS IN	Enumeration enum = providers_.elements();	Enumeration support_orgs;        if (TaskUtils.isProjection(task)) {            /* For a projection, should be time-phased as support               changes over time. We ignore that, for now */            support_orgs = AssetUtils.getSupportingOrgs(myOrganization_, providerRole_,                                                         TaskUtils.getStartTime(task), TaskUtils.getEndTime(task));        } else {            support_orgs = AssetUtils.getSupportingOrgs(myOrganization_, providerRole_,                                                         TaskUtils.getEndTime(task));        }	if (support_orgs.hasMoreElements()) {	    // For now, returning the first supporting org during the time span	    return (Organization)support_orgs.nextElement();	}	else {	    if (TaskUtils.isProjection(task)) {		printError("No "+providerRole_+", during "+TimeUtils.dateString(TaskUtils.getStartTime(task))+			   TimeUtils.dateString(TaskUtils.getEndTime(task)));	    } else {		printError("No "+providerRole_+", during "+TimeUtils.dateString(TaskUtils.getEndTime(task)));	    }	}	return null;    }