Program: 41453
Project: 41453
Buggy source:
@Override public void run(){
  LOG.debug("String_Node_Str");
  this.state.currentState=PlanGenerationState.PlanGenerationStates.CSARDOWNLOADING;
  final IHTTPService openToscaHttpService=ServiceRegistry.getHTTPService();
  if (openToscaHttpService == null) {
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
    this.state.currentMessage="String_Node_Str";
    LOG.error("String_Node_Str");
    return;
  }
  CSARID csarId=null;
  InputStream csarInputStream=null;
  try {
    LOG.debug("String_Node_Str" + this.state.getCsarUrl());
    final Map<String,String> headers=new HashMap<>();
    headers.put("String_Node_Str","String_Node_Str");
    final HttpResponse csarResponse=openToscaHttpService.Get(this.state.getCsarUrl().toString(),headers);
    csarInputStream=csarResponse.getEntity().getContent();
    String fileName=null;
    for (    final org.apache.http.Header header : csarResponse.getAllHeaders()) {
      if (header.getName().contains("String_Node_Str")) {
        for (        final HeaderElement elem : header.getElements()) {
          if (elem.getName().equals("String_Node_Str")) {
            for (            final NameValuePair nameValuePair : elem.getParameters()) {
              if (nameValuePair.getName().equals("String_Node_Str")) {
                fileName=nameValuePair.getValue();
              }
            }
          }
        }
      }
    }
    if (fileName == null) {
      fileName=this.state.getCsarUrl().toString().replace("String_Node_Str","String_Node_Str");
      if (fileName.endsWith("String_Node_Str")) {
        fileName=fileName.substring(0,fileName.length() - 1);
      }
      fileName=fileName.substring(fileName.lastIndexOf("String_Node_Str") + 1);
    }
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADED;
    this.state.currentMessage="String_Node_Str";
    LOG.debug("String_Node_Str");
    if (fileName == null) {
      LOG.debug("String_Node_Str");
      this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
      this.state.currentMessage="String_Node_Str";
      return;
    }
    fileName=fileName.replace("String_Node_Str","String_Node_Str") + "String_Node_Str" + System.currentTimeMillis()+ "String_Node_Str";
    LOG.debug("String_Node_Str");
    csarId=Util.storeCSAR(fileName,csarInputStream);
  }
 catch (  final ClientProtocolException e) {
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
    this.state.currentMessage="String_Node_Str";
    LOG.error("String_Node_Str");
    return;
  }
catch (  final IOException e) {
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
    this.state.currentMessage="String_Node_Str";
    LOG.error("String_Node_Str");
    return;
  }
  if (csarInputStream == null) {
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
    this.state.currentMessage="String_Node_Str";
    LOG.error("String_Node_Str");
    return;
  }
  if (csarId != null) {
    this.state.currentState=PlanGenerationStates.PLANGENERATING;
    this.state.currentMessage="String_Node_Str";
    LOG.debug("String_Node_Str");
  }
 else {
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
    this.state.currentMessage="String_Node_Str";
    LOG.error("String_Node_Str");
    Util.deleteCSAR(csarId);
    return;
  }
  final List<AbstractPlan> buildPlans=Util.startPlanBuilder(csarId);
  if (buildPlans.size() <= 0) {
    this.state.currentState=PlanGenerationStates.PLANGENERATIONFAILED;
    this.state.currentMessage="String_Node_Str";
    Util.deleteCSAR(csarId);
    LOG.error("String_Node_Str");
    return;
  }
  this.state.currentState=PlanGenerationStates.PLANSGENERATED;
  this.state.currentMessage="String_Node_Str";
  LOG.debug("String_Node_Str");
  final Map<BPELPlan,File> plansToUpload=new HashMap<>();
  for (  final AbstractPlan buildPlan : buildPlans) {
    final File planTmpFile=Util.writePlan2TmpFolder((BPELPlan)buildPlan);
    plansToUpload.put((BPELPlan)buildPlan,planTmpFile);
  }
  LOG.debug("String_Node_Str" + buildPlans.size());
  for (  final AbstractPlan buildPlan : plansToUpload.keySet()) {
    final File planTmpFile=plansToUpload.get(buildPlan);
    final List<String> inputParameters=((BPELPlan)buildPlan).getWsdl().getInputMessageLocalNames();
    final List<String> outputParameters=((BPELPlan)buildPlan).getWsdl().getOuputMessageLocalNames();
    final JSONObject obj=new JSONObject();
    obj.put("String_Node_Str",buildPlan.getId());
    obj.put("String_Node_Str",buildPlan.getType().getString());
    obj.put("String_Node_Str",((BPELPlan)buildPlan).bpelNamespace);
    final HttpEntity ent=EntityBuilder.create().setText(obj.toJSONString()).setContentType(ContentType.APPLICATION_JSON).build();
    HttpResponse createPlanResponse=null;
    try {
      createPlanResponse=openToscaHttpService.Post(getState().getPostUrl().toString(),ent);
    }
 catch (    final ClientProtocolException e2) {
      this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
      this.state.currentMessage="String_Node_Str" + createPlanResponse.getStatusLine().getStatusCode();
      Util.deleteCSAR(csarId);
      LOG.error("String_Node_Str" + createPlanResponse.getStatusLine().getStatusCode());
      return;
    }
catch (    final IOException e2) {
      this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
      this.state.currentMessage="String_Node_Str" + createPlanResponse.getStatusLine().getStatusCode();
      Util.deleteCSAR(csarId);
      LOG.error("String_Node_Str" + createPlanResponse.getStatusLine().getStatusCode());
      return;
    }
    final org.apache.http.Header planLocationHeader=createPlanResponse.getHeaders("String_Node_Str")[0];
    final String planLocation=planLocationHeader.getValue();
    try {
      this.state.currentState=PlanGenerationStates.PLANSENDING;
      this.state.currentMessage="String_Node_Str";
      LOG.debug("String_Node_Str");
      for (      final String inputParam : inputParameters) {
        final String inputParamPostUrl=planLocation + "String_Node_Str";
        final List<NameValuePair> params=new ArrayList<>();
        params.add(Util.createNameValuePair("String_Node_Str",inputParam));
        params.add(Util.createNameValuePair("String_Node_Str","String_Node_Str"));
        params.add(Util.createNameValuePair("String_Node_Str","String_Node_Str"));
        final UrlEncodedFormEntity encodedForm=new UrlEncodedFormEntity(params);
        final HttpResponse inputParamPostResponse=openToscaHttpService.Post(inputParamPostUrl,encodedForm);
        if (inputParamPostResponse.getStatusLine().getStatusCode() >= 300) {
          this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
          this.state.currentMessage="String_Node_Str" + inputParamPostUrl + "String_Node_Str"+ inputParam+ "String_Node_Str"+ inputParamPostResponse.getStatusLine().getStatusCode();
          Util.deleteCSAR(csarId);
          LOG.error("String_Node_Str" + inputParamPostUrl + "String_Node_Str"+ inputParam+ "String_Node_Str"+ inputParamPostResponse.getStatusLine().getStatusCode());
          return;
        }
        LOG.debug("String_Node_Str" + inputParam);
      }
      for (      final String outputParam : outputParameters) {
        final String outputParamPostUrl=planLocation + "String_Node_Str";
        final List<NameValuePair> params=new ArrayList<>();
        params.add(Util.createNameValuePair("String_Node_Str",outputParam));
        params.add(Util.createNameValuePair("String_Node_Str","String_Node_Str"));
        params.add(Util.createNameValuePair("String_Node_Str","String_Node_Str"));
        final UrlEncodedFormEntity encodedForm=new UrlEncodedFormEntity(params);
        final HttpResponse outputParamPostResponse=openToscaHttpService.Post(outputParamPostUrl,encodedForm);
        if (outputParamPostResponse.getStatusLine().getStatusCode() >= 300) {
          this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
          this.state.currentMessage="String_Node_Str" + outputParamPostUrl + "String_Node_Str"+ outputParam+ "String_Node_Str"+ outputParamPostResponse.getStatusLine().getStatusCode();
          Util.deleteCSAR(csarId);
          LOG.error("String_Node_Str" + outputParamPostUrl + "String_Node_Str"+ outputParam+ "String_Node_Str"+ outputParamPostResponse.getStatusLine().getStatusCode());
          return;
        }
        LOG.debug("String_Node_Str" + outputParam);
      }
      final MultipartEntity mpEntity=new MultipartEntity();
      final FileBody bin=new FileBody(planTmpFile);
      final ContentBody cb=bin;
      mpEntity.addPart("String_Node_Str",cb);
      final HttpResponse uploadResponse=openToscaHttpService.Put(planLocation + "String_Node_Str",mpEntity);
      if (uploadResponse.getStatusLine().getStatusCode() >= 300) {
        this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
        this.state.currentMessage="String_Node_Str" + uploadResponse.getStatusLine().getStatusCode();
        Util.deleteCSAR(csarId);
        LOG.error("String_Node_Str" + uploadResponse.getStatusLine().getStatusCode());
        return;
      }
      try {
        LOG.debug("String_Node_Str");
        this.state.currentState=PlanGenerationStates.OPTIONSENDING;
        this.state.currentMessage="String_Node_Str";
        final URL optionsUrl=new URL(this.state.getCsarUrl(),"String_Node_Str");
        LOG.debug("String_Node_Str" + optionsUrl.toString());
        final SelfServiceOptionWrapper option=Util.generateSelfServiceOption((BPELPlan)buildPlan);
        LOG.debug("String_Node_Str" + option.toString());
        final MultipartEntity mpOptionEntity=new MultipartEntity();
        try {
          mpOptionEntity.addPart("String_Node_Str",new StringBody(option.option.getName()));
          mpOptionEntity.addPart("String_Node_Str",new StringBody(option.option.getDescription()));
          mpOptionEntity.addPart("String_Node_Str",new StringBody(option.option.getPlanServiceName()));
          mpOptionEntity.addPart("String_Node_Str",new StringBody(FileUtils.readFileToString(option.planInputMessageFile)));
        }
 catch (        final UnsupportedEncodingException e1) {
          this.state.currentState=PlanGenerationStates.OPTIONSENDINGFAILED;
          this.state.currentMessage="String_Node_Str";
          Util.deleteCSAR(csarId);
          LOG.error("String_Node_Str" + optionsUrl.toString());
          return;
        }
        final FileBody fileBody=new FileBody(option.planInputMessageFile);
        final ContentBody contentBody=fileBody;
        mpOptionEntity.addPart("String_Node_Str",contentBody);
        final HttpResponse optionsResponse=openToscaHttpService.Post(optionsUrl.toString(),mpOptionEntity);
        if (optionsResponse.getStatusLine().getStatusCode() >= 300) {
          this.state.currentState=PlanGenerationStates.OPTIONSENDINGFAILED;
          this.state.currentMessage="String_Node_Str" + optionsResponse.getStatusLine().getStatusCode() + "String_Node_Str"+ optionsResponse.getStatusLine().getReasonPhrase();
          Util.deleteCSAR(csarId);
          return;
        }
 else {
          this.state.currentState=PlanGenerationStates.OPTIONSENT;
          this.state.currentMessage="String_Node_Str";
        }
      }
 catch (      final MalformedURLException e) {
        this.state.currentState=PlanGenerationStates.OPTIONSENDINGFAILED;
        this.state.currentMessage="String_Node_Str";
        Util.deleteCSAR(csarId);
        return;
      }
catch (      final IOException e) {
        this.state.currentState=PlanGenerationStates.OPTIONSENDINGFAILED;
        this.state.currentMessage="String_Node_Str";
        Util.deleteCSAR(csarId);
        return;
      }
      this.state.currentState=PlanGenerationStates.PLANSSENT;
      this.state.currentMessage="String_Node_Str";
      LOG.debug("String_Node_Str");
    }
 catch (    final ClientProtocolException e) {
      this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
      this.state.currentMessage="String_Node_Str";
      Util.deleteCSAR(csarId);
      LOG.error("String_Node_Str");
      return;
    }
catch (    final IOException e) {
      this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
      this.state.currentMessage="String_Node_Str";
      Util.deleteCSAR(csarId);
      LOG.error("String_Node_Str");
      return;
    }
    this.state.currentState=PlanGenerationStates.FINISHED;
    this.state.currentMessage="String_Node_Str";
    Util.deleteCSAR(csarId);
  }
}

Fixed version (ground truth):
@Override public void run(){
  LOG.debug("String_Node_Str");
  this.state.currentState=PlanGenerationState.PlanGenerationStates.CSARDOWNLOADING;
  final IHTTPService openToscaHttpService=ServiceRegistry.getHTTPService();
  if (openToscaHttpService == null) {
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
    this.state.currentMessage="String_Node_Str";
    LOG.error("String_Node_Str");
    return;
  }
  CSARID csarId=null;
  InputStream csarInputStream=null;
  try {
    LOG.debug("String_Node_Str" + this.state.getCsarUrl());
    final Map<String,String> headers=new HashMap<>();
    headers.put("String_Node_Str","String_Node_Str");
    final HttpResponse csarResponse=openToscaHttpService.Get(this.state.getCsarUrl().toString(),headers);
    csarInputStream=csarResponse.getEntity().getContent();
    String fileName=null;
    for (    final org.apache.http.Header header : csarResponse.getAllHeaders()) {
      if (header.getName().contains("String_Node_Str")) {
        for (        final HeaderElement elem : header.getElements()) {
          if (elem.getName().equals("String_Node_Str")) {
            for (            final NameValuePair nameValuePair : elem.getParameters()) {
              if (nameValuePair.getName().equals("String_Node_Str")) {
                fileName=nameValuePair.getValue();
              }
            }
          }
        }
      }
    }
    if (fileName == null) {
      fileName=this.state.getCsarUrl().toString().replace("String_Node_Str","String_Node_Str");
      if (fileName.endsWith("String_Node_Str")) {
        fileName=fileName.substring(0,fileName.length() - 1);
      }
      fileName=fileName.substring(fileName.lastIndexOf("String_Node_Str") + 1);
    }
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADED;
    this.state.currentMessage="String_Node_Str";
    LOG.debug("String_Node_Str");
    if (fileName == null) {
      LOG.debug("String_Node_Str");
      this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
      this.state.currentMessage="String_Node_Str";
      return;
    }
    fileName=fileName.replace("String_Node_Str","String_Node_Str") + "String_Node_Str" + System.currentTimeMillis()+ "String_Node_Str";
    LOG.debug("String_Node_Str");
    csarId=Util.storeCSAR(fileName,csarInputStream);
  }
 catch (  final ClientProtocolException e) {
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
    this.state.currentMessage="String_Node_Str";
    LOG.error("String_Node_Str");
    return;
  }
catch (  final IOException e) {
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
    this.state.currentMessage="String_Node_Str";
    LOG.error("String_Node_Str");
    return;
  }
  if (csarInputStream == null) {
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
    this.state.currentMessage="String_Node_Str";
    LOG.error("String_Node_Str");
    return;
  }
  if (csarId != null) {
    this.state.currentState=PlanGenerationStates.PLANGENERATING;
    this.state.currentMessage="String_Node_Str";
    LOG.debug("String_Node_Str");
  }
 else {
    this.state.currentState=PlanGenerationStates.CSARDOWNLOADFAILED;
    this.state.currentMessage="String_Node_Str";
    LOG.error("String_Node_Str");
    Util.deleteCSAR(csarId);
    return;
  }
  final List<AbstractPlan> buildPlans=Util.startPlanBuilder(csarId);
  if (buildPlans.size() <= 0) {
    this.state.currentState=PlanGenerationStates.PLANGENERATIONFAILED;
    this.state.currentMessage="String_Node_Str";
    Util.deleteCSAR(csarId);
    LOG.error("String_Node_Str");
    return;
  }
  this.state.currentState=PlanGenerationStates.PLANSGENERATED;
  this.state.currentMessage="String_Node_Str";
  LOG.debug("String_Node_Str");
  final Map<BPELPlan,File> plansToUpload=new HashMap<>();
  for (  final AbstractPlan buildPlan : buildPlans) {
    final File planTmpFile=Util.writePlan2TmpFolder((BPELPlan)buildPlan);
    plansToUpload.put((BPELPlan)buildPlan,planTmpFile);
  }
  LOG.debug("String_Node_Str" + buildPlans.size());
  for (  final AbstractPlan buildPlan : plansToUpload.keySet()) {
    final File planTmpFile=plansToUpload.get(buildPlan);
    final List<String> inputParameters=((BPELPlan)buildPlan).getWsdl().getInputMessageLocalNames();
    final List<String> outputParameters=((BPELPlan)buildPlan).getWsdl().getOuputMessageLocalNames();
    final JSONObject obj=new JSONObject();
    obj.put("String_Node_Str",buildPlan.getId());
    obj.put("String_Node_Str",buildPlan.getType().getString());
    obj.put("String_Node_Str",((BPELPlan)buildPlan).bpelNamespace);
    final HttpEntity ent=EntityBuilder.create().setText(obj.toJSONString()).setContentType(ContentType.APPLICATION_JSON).build();
    HttpResponse createPlanResponse=null;
    try {
      createPlanResponse=openToscaHttpService.Post(getState().getPostUrl().toString(),ent);
    }
 catch (    final ClientProtocolException e2) {
      this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
      this.state.currentMessage="String_Node_Str" + createPlanResponse.getStatusLine().getStatusCode();
      Util.deleteCSAR(csarId);
      LOG.error("String_Node_Str" + createPlanResponse.getStatusLine().getStatusCode());
      return;
    }
catch (    final IOException e2) {
      this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
      this.state.currentMessage="String_Node_Str" + createPlanResponse.getStatusLine().getStatusCode();
      Util.deleteCSAR(csarId);
      LOG.error("String_Node_Str" + createPlanResponse.getStatusLine().getStatusCode());
      return;
    }
    final org.apache.http.Header planLocationHeader=createPlanResponse.getHeaders("String_Node_Str")[0];
    final String planLocation=planLocationHeader.getValue();
    try {
      this.state.currentState=PlanGenerationStates.PLANSENDING;
      this.state.currentMessage="String_Node_Str";
      LOG.debug("String_Node_Str");
      for (      final String inputParam : inputParameters) {
        final String inputParamPostUrl=planLocation + "String_Node_Str";
        final List<NameValuePair> params=new ArrayList<>();
        params.add(Util.createNameValuePair("String_Node_Str",inputParam));
        params.add(Util.createNameValuePair("String_Node_Str","String_Node_Str"));
        params.add(Util.createNameValuePair("String_Node_Str","String_Node_Str"));
        final UrlEncodedFormEntity encodedForm=new UrlEncodedFormEntity(params);
        final HttpResponse inputParamPostResponse=openToscaHttpService.Post(inputParamPostUrl,encodedForm);
        if (inputParamPostResponse.getStatusLine().getStatusCode() >= 300) {
          this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
          this.state.currentMessage="String_Node_Str" + inputParamPostUrl + "String_Node_Str"+ inputParam+ "String_Node_Str"+ inputParamPostResponse.getStatusLine().getStatusCode();
          Util.deleteCSAR(csarId);
          LOG.error("String_Node_Str" + inputParamPostUrl + "String_Node_Str"+ inputParam+ "String_Node_Str"+ inputParamPostResponse.getStatusLine().getStatusCode());
          return;
        }
        LOG.debug("String_Node_Str" + inputParam);
      }
      for (      final String outputParam : outputParameters) {
        final String outputParamPostUrl=planLocation + "String_Node_Str";
        final List<NameValuePair> params=new ArrayList<>();
        params.add(Util.createNameValuePair("String_Node_Str",outputParam));
        params.add(Util.createNameValuePair("String_Node_Str","String_Node_Str"));
        params.add(Util.createNameValuePair("String_Node_Str","String_Node_Str"));
        final UrlEncodedFormEntity encodedForm=new UrlEncodedFormEntity(params);
        final HttpResponse outputParamPostResponse=openToscaHttpService.Post(outputParamPostUrl,encodedForm);
        if (outputParamPostResponse.getStatusLine().getStatusCode() >= 300) {
          this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
          this.state.currentMessage="String_Node_Str" + outputParamPostUrl + "String_Node_Str"+ outputParam+ "String_Node_Str"+ outputParamPostResponse.getStatusLine().getStatusCode();
          Util.deleteCSAR(csarId);
          LOG.error("String_Node_Str" + outputParamPostUrl + "String_Node_Str"+ outputParam+ "String_Node_Str"+ outputParamPostResponse.getStatusLine().getStatusCode());
          return;
        }
        LOG.debug("String_Node_Str" + outputParam);
      }
      final MultipartEntity mpEntity=new MultipartEntity();
      final FileBody bin=new FileBody(planTmpFile);
      final ContentBody cb=bin;
      mpEntity.addPart("String_Node_Str",cb);
      final HttpResponse uploadResponse=openToscaHttpService.Put(planLocation + "String_Node_Str",mpEntity);
      if (uploadResponse.getStatusLine().getStatusCode() >= 300) {
        this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
        this.state.currentMessage="String_Node_Str" + uploadResponse.getStatusLine().getStatusCode();
        Util.deleteCSAR(csarId);
        LOG.error("String_Node_Str" + uploadResponse.getStatusLine().getStatusCode());
        return;
      }
      try {
        LOG.debug("String_Node_Str");
        this.state.currentState=PlanGenerationStates.OPTIONSENDING;
        this.state.currentMessage="String_Node_Str";
        final URL optionsUrl=new URL(this.state.getCsarUrl(),"String_Node_Str");
        LOG.debug("String_Node_Str" + optionsUrl.toString());
        final SelfServiceOptionWrapper option=Util.generateSelfServiceOption((BPELPlan)buildPlan);
        LOG.debug("String_Node_Str" + option.toString());
        final MultipartEntity mpOptionEntity=new MultipartEntity();
        try {
          mpOptionEntity.addPart("String_Node_Str",new StringBody(option.option.getName()));
          mpOptionEntity.addPart("String_Node_Str",new StringBody(option.option.getDescription()));
          mpOptionEntity.addPart("String_Node_Str",new StringBody(option.option.getPlanServiceName()));
          mpOptionEntity.addPart("String_Node_Str",new StringBody(FileUtils.readFileToString(option.planInputMessageFile)));
        }
 catch (        final UnsupportedEncodingException e1) {
          this.state.currentState=PlanGenerationStates.OPTIONSENDINGFAILED;
          this.state.currentMessage="String_Node_Str";
          Util.deleteCSAR(csarId);
          LOG.error("String_Node_Str" + optionsUrl.toString());
          return;
        }
        final FileBody fileBody=new FileBody(option.planInputMessageFile);
        final ContentBody contentBody=fileBody;
        mpOptionEntity.addPart("String_Node_Str",contentBody);
        final HttpResponse optionsResponse=openToscaHttpService.Post(optionsUrl.toString(),mpOptionEntity);
        if (optionsResponse.getStatusLine().getStatusCode() >= 300) {
          this.state.currentState=PlanGenerationStates.OPTIONSENDINGFAILED;
          this.state.currentMessage="String_Node_Str" + optionsResponse.getStatusLine().getStatusCode() + "String_Node_Str"+ optionsResponse.getStatusLine().getReasonPhrase();
          Util.deleteCSAR(csarId);
          return;
        }
 else {
          this.state.currentState=PlanGenerationStates.OPTIONSENT;
          this.state.currentMessage="String_Node_Str";
        }
      }
 catch (      final MalformedURLException e) {
        this.state.currentState=PlanGenerationStates.OPTIONSENDINGFAILED;
        this.state.currentMessage="String_Node_Str";
        Util.deleteCSAR(csarId);
        return;
      }
catch (      final IOException e) {
        this.state.currentState=PlanGenerationStates.OPTIONSENDINGFAILED;
        this.state.currentMessage="String_Node_Str";
        Util.deleteCSAR(csarId);
        return;
      }
      this.state.currentState=PlanGenerationStates.PLANSSENT;
      this.state.currentMessage="String_Node_Str";
      LOG.debug("String_Node_Str");
    }
 catch (    final ClientProtocolException e) {
      this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
      this.state.currentMessage="String_Node_Str";
      Util.deleteCSAR(csarId);
      LOG.error("String_Node_Str");
      return;
    }
catch (    final IOException e) {
      this.state.currentState=PlanGenerationStates.PLANSENDINGFAILED;
      this.state.currentMessage="String_Node_Str";
      Util.deleteCSAR(csarId);
      LOG.error("String_Node_Str");
      return;
    }
  }
  this.state.currentState=PlanGenerationStates.FINISHED;
  this.state.currentMessage="String_Node_Str";
  Util.deleteCSAR(csarId);
}