code: public void endActivity(HttpClientActivity activity) {
  
          final HttpClientActivityHandle ah = new HttpClientActivityHandle(activity.getSessionId());
  
          if (activities.containsKey(ah)) {
              resourceAdaptorContext.getSleeEndpoint().endActivity(ah);
          }
      }
docs: Ends the specified activity
  
  @param activity