TimeInterval timeInterval) {
TimeSpan timeInterval) {
  protected boolean alreadyAskedForContractWithProvider(Role role, 							String providerName,							TimeInterval timeInterval) {    if (myLoggingService.isDebugEnabled()) {      myLoggingService.debug(getAgentIdentifier() +                             " alreadyAskedForContractWithProvider check " + 			     providerName + " " + role);    }    //what if part of the current time interval was requested but another part(s)    //wasn't? (should return false, because if there is any uncovered part, you    //want to make the request)    //search for all myServiceRequestHistories with matching role    //there should be one or none    ServiceRequestHistory srh =       (ServiceRequestHistory) myServiceRequestHistories.get(role);    if (srh != null) {      boolean ret = srh.containsRequest(providerName, timeInterval);      if (myLoggingService.isDebugEnabled()) {        myLoggingService.debug(getAgentIdentifier() +                               " alreadyAskedForContractWithProvider " + ret);      }      return ret;    } else if (myLoggingService.isDebugEnabled()) {      myLoggingService.debug(getAgentIdentifier() +			     " alreadyAskedForContractWithProvider srh is null");      Iterator it = myServiceRequestHistories.keySet().iterator();      while(it.hasNext()) {	Role key = (Role)it.next();	if (myLoggingService.isDebugEnabled()) {	  myLoggingService.debug("key " + key);	}      }    }    return false;  }