String key = (String)it.next();
Role key = (Role) it.next();
  private ServiceRequestHistory augmentServiceRequestHistory(ServiceContractRelay relay, 							     TimeInterval requestedTimeInterval) {        if (requestedTimeInterval == null) {      myLoggingService.debug(getAgentIdentifier() +			     " service request to " + 			     relay.getProviderName() + 			     " for " +			     relay.getServiceRequest().getServiceRole() +			     " does not have valid start/end time preferences.");    }            ServiceRequestRecord srr =       new ServiceRequestRecord(relay.getProviderName(),			       requestedTimeInterval);        //if this request is not in the history (because it previously    //completely satisfied the request) put it in    Role role = relay.getServiceContract().getServiceRole();    ServiceRequestHistory srh =       (ServiceRequestHistory) myServiceRequestHistories.get(role);    if (srh == null) {      if (myLoggingService.isDebugEnabled()) {	myLoggingService.debug(getAgentIdentifier() +			       " handleChangedServiceContractRelays, put into history " +			       relay.getProviderName() + " " + role);      }            srh = new ServiceRequestHistory(role, requestedTimeInterval, srr);      myServiceRequestHistories.put(role, srh);            if (myLoggingService.isDebugEnabled()) {	for (Iterator it = myServiceRequestHistories.keySet().iterator();	     it.hasNext();) {	  String key = (String)it.next();	  if (myLoggingService.isDebugEnabled()) {	    myLoggingService.debug("key " + key);	  }	}      }    } else {      //Add new service request history      srh.addRequest(srr);    }    return srh;  }