myLoggingService.debug("key " +(String)it.next());
myLoggingService.debug("key " + key);
  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 ServiceRequestHistories with matching role    //there should be one or none    ServiceRequestHistory srh = (ServiceRequestHistory) serviceRequestHistories.get(role.toString());    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 = serviceRequestHistories.keySet().iterator();      while(it.hasNext()) {        if (myLoggingService.isDebugEnabled()) {          myLoggingService.debug("key " +(String)it.next());        }      }    }    return false;  }