Program: 34493
Project: 34493
Buggy source:
@Override public void afterDoCap(InvokeChainContext context,Object[] args){
  if (UAVServer.instance().isExistSupportor("String_Node_Str")) {
    String url=(String)context.get(CaptureConstants.INFO_APPSERVER_CONNECTOR_REQUEST_URL);
    Span span=this.spanFactory.getRemoveSpanFromContext(url);
    if (span == null) {
      return;
    }
    SlowOperContext slowOperContext=new SlowOperContext();
    if (RewriteIvcRequestWrapper.class.isAssignableFrom(args[0].getClass()) && RewriteIvcResponseWrapper.class.isAssignableFrom(args[1].getClass())) {
      RewriteIvcRequestWrapper request=(RewriteIvcRequestWrapper)args[0];
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_REQ_BODY,request.getContent().toString());
      request.clearBodyContent();
      RewriteIvcResponseWrapper response=(RewriteIvcResponseWrapper)args[1];
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_RSP_HEADER,getResponHeaders(response));
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_RSP_BODY,response.getContent().toString());
      response.clearBodyContent();
    }
 else {
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_REQ_BODY,"String_Node_Str");
      HttpServletResponse response=(HttpServletResponse)args[1];
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_RSP_HEADER,getResponHeaders(response));
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_RSP_BODY,"String_Node_Str");
    }
    Object params[]={span,slowOperContext};
    UAVServer.instance().runSupporter("String_Node_Str","String_Node_Str",span.getEndpointInfo().split("String_Node_Str")[0],InvokeChainConstants.CapturePhase.DOCAP,context,params);
  }
}

Fixed version (ground truth):
@Override public void afterDoCap(InvokeChainContext context,Object[] args){
  if (UAVServer.instance().isExistSupportor("String_Node_Str")) {
    String url=(String)context.get(CaptureConstants.INFO_APPSERVER_CONNECTOR_REQUEST_URL);
    Span span=this.spanFactory.getRemoveSpanFromContext(url);
    if (span == null) {
      return;
    }
    SlowOperContext slowOperContext=new SlowOperContext();
    if (RewriteIvcRequestWrapper.class.isAssignableFrom(args[0].getClass()) && RewriteIvcResponseWrapper.class.isAssignableFrom(args[1].getClass())) {
      RewriteIvcRequestWrapper request=(RewriteIvcRequestWrapper)args[0];
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_REQ_HEADER,getRequestHeaders(request) + generateParameterString(request.getAllParameters()));
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_REQ_BODY,request.getContent().toString());
      request.clearBodyContent();
      RewriteIvcResponseWrapper response=(RewriteIvcResponseWrapper)args[1];
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_RSP_HEADER,getResponHeaders(response));
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_RSP_BODY,response.getContent().toString());
      response.clearBodyContent();
    }
 else {
      HttpServletRequest request=(HttpServletRequest)args[0];
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_REQ_HEADER,getRequestHeaders(request));
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_REQ_BODY,"String_Node_Str");
      HttpServletResponse response=(HttpServletResponse)args[1];
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_RSP_HEADER,getResponHeaders(response));
      slowOperContext.put(SlowOperConstants.PROTOCOL_HTTP_RSP_BODY,"String_Node_Str");
    }
    Object params[]={span,slowOperContext};
    UAVServer.instance().runSupporter("String_Node_Str","String_Node_Str",span.getEndpointInfo().split("String_Node_Str")[0],InvokeChainConstants.CapturePhase.DOCAP,context,params);
  }
}