Program: 132184
Project: 132184
Buggy source:
/** 
 * Communicates SFP to REST URI found in SFF configuration Server. It sends SFP information to each SFF present in the service-hop list. <p>
 * @param renderedServicePath Service Function Path object
 */
public void deleteServiceFunctionPath(RenderedServicePath renderedServicePath){
  printTraceStart(LOG);
  ClientConfig clientConfig=new DefaultClientConfig();
  Client client=Client.create(clientConfig);
  String sfpURI;
  String restURI;
  List<RenderedServicePathHop> renderedServicePathHopList=renderedServicePath.getRenderedServicePathHop();
  Set<String> sffNameSet=new HashSet<>();
  for (  RenderedServicePathHop renderedServicePathHop : renderedServicePathHopList) {
    String sffName=renderedServicePathHop.getServiceFunctionForwarder();
    if (sffNameSet.add(sffName)) {
      Object[] serviceForwarderObj={sffName};
      Class[] serviceForwarderClass={String.class};
      SfcProviderServiceForwarderAPI sfcProviderServiceForwarderAPI=SfcProviderServiceForwarderAPI.getRead(serviceForwarderObj,serviceForwarderClass);
      Future<Object> future=odlSfc.executor.submit(sfcProviderServiceForwarderAPI);
      ClientResponse deleteClientRemoteResponse;
      try {
        ServiceFunctionForwarder serviceFunctionForwarder=(ServiceFunctionForwarder)future.get();
        restURI=serviceFunctionForwarder.getRestUri().getValue();
        sfpURI=restURI + "String_Node_Str" + "String_Node_Str"+ renderedServicePath.getName();
        deleteClientRemoteResponse=client.resource(sfpURI).type(MediaType.APPLICATION_JSON_TYPE).delete(ClientResponse.class);
        if (deleteClientRemoteResponse.getStatus() >= 300) {
          throw new UniformInterfaceException(HTTP_ERROR_MSG + deleteClientRemoteResponse.getStatus(),deleteClientRemoteResponse);
        }
        deleteClientRemoteResponse.close();
      }
 catch (      InterruptedException e) {
        e.printStackTrace();
      }
catch (      ExecutionException e) {
        e.printStackTrace();
      }
    }
  }
  printTraceStop(LOG);
}

Fixed version (ground truth):
/** 
 * Communicates SFP to REST URI found in SFF configuration Server. It sends SFP information to each SFF present in the service-hop list. <p>
 * @param renderedServicePath Service Function Path object
 */
public void deleteServiceFunctionPath(RenderedServicePath renderedServicePath){
  printTraceStart(LOG);
  ClientConfig clientConfig=new DefaultClientConfig();
  Client client=Client.create(clientConfig);
  String sfpURI;
  String restURI;
  List<RenderedServicePathHop> renderedServicePathHopList=renderedServicePath.getRenderedServicePathHop();
  Set<String> sffNameSet=new HashSet<>();
  for (  RenderedServicePathHop renderedServicePathHop : renderedServicePathHopList) {
    String sffName=renderedServicePathHop.getServiceFunctionForwarder();
    if (sffNameSet.add(sffName)) {
      Object[] serviceForwarderObj={sffName};
      Class[] serviceForwarderClass={String.class};
      SfcProviderServiceForwarderAPI sfcProviderServiceForwarderAPI=SfcProviderServiceForwarderAPI.getRead(serviceForwarderObj,serviceForwarderClass);
      Future<Object> future=odlSfc.executor.submit(sfcProviderServiceForwarderAPI);
      ClientResponse deleteClientRemoteResponse;
      try {
        ServiceFunctionForwarder serviceFunctionForwarder=(ServiceFunctionForwarder)future.get();
        restURI=serviceFunctionForwarder.getRestUri().getValue();
        sfpURI=restURI + "String_Node_Str" + "String_Node_Str"+ renderedServicePath.getName();
        deleteClientRemoteResponse=client.resource(sfpURI).type(MediaType.APPLICATION_JSON_TYPE).delete(ClientResponse.class);
        if (deleteClientRemoteResponse.getStatus() >= 300) {
          throw new UniformInterfaceException(HTTP_ERROR_MSG + deleteClientRemoteResponse.getStatus(),deleteClientRemoteResponse);
        }
        deleteClientRemoteResponse.close();
      }
 catch (      InterruptedException e) {
        LOG.warn("String_Node_Str",e);
      }
catch (      ExecutionException e) {
        LOG.warn("String_Node_Str",e);
      }
    }
  }
  printTraceStop(LOG);
}