if (myLoggingService.isDebugEnabled()) { myLoggingService.debug("ALProviderPlugin handleAddedServiceContractRelay"); }
  protected void handleAddedServiceContractRelay(ServiceContractRelay relay){    if(sayYes) {      super.handleAddedServiceContractRelay(relay);    }    //say no by making the end time preference  == the start time preferend    else {      ServiceRequest serviceRequest = relay.getServiceRequest();      ArrayList contractPreferences =        new ArrayList(serviceRequest.getServicePreferences().size());      Preference startPref = null;      for (Iterator iterator = serviceRequest.getServicePreferences().iterator();           iterator.hasNext();) {        Preference requestPreference = (Preference) iterator.next();        //remember the start time pref        if(requestPreference.getAspectType() == Preference.START_TIME) {            startPref = requestPreference;        }        //copy all prefs which are not the end time pref        if(requestPreference.getAspectType() != Preference.END_TIME) {          Preference contractPreference =              getFactory().newPreference(requestPreference.getAspectType(),              requestPreference.getScoringFunction(),              requestPreference.getWeight());          contractPreferences.add(contractPreference);        }      }      //now put in an end time pref that is the same as the start time      if(startPref != null) {        Preference contractPreference =            getFactory().newPreference(Preference.END_TIME,            startPref.getScoringFunction(),            startPref.getWeight());        contractPreferences.add(contractPreference);      }    }  }