Program: 59138
Project: 59138
Buggy source:
@SuppressWarnings("String_Node_Str") public void convertLead(ActionRequest request,ActionResponse response) throws AxelorException {
  Context context=request.getContext();
  Map<String,Object> leadContext=(Map<String,Object>)context.get("String_Node_Str");
  Lead lead=Lead.find(((Integer)leadContext.get("String_Node_Str")).longValue());
  Partner partner=null;
  Partner contactPartner=null;
  Opportunity opportunity=null;
  Event callEvent=null;
  Event meetingEvent=null;
  Event taskEvent=null;
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    contactPartner=convertLeadWizardService.createPartner((Map<String,Object>)context.get("String_Node_Str"));
  }
 else   if (context.get("String_Node_Str") != null) {
    Map<String,Object> selectContactContext=(Map<String,Object>)context.get("String_Node_Str");
    contactPartner=Partner.find(((Integer)selectContactContext.get("String_Node_Str")).longValue());
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    partner=convertLeadWizardService.createPartner((Map<String,Object>)context.get("String_Node_Str"));
  }
 else   if (context.get("String_Node_Str") != null) {
    Map<String,Object> selectPartnerContext=(Map<String,Object>)context.get("String_Node_Str");
    partner=Partner.find(((Integer)selectPartnerContext.get("String_Node_Str")).longValue());
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    opportunity=convertLeadWizardService.createOpportunity((Map<String,Object>)context.get("String_Node_Str"));
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    callEvent=convertLeadWizardService.createEvent((Map<String,Object>)context.get("String_Node_Str"));
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    meetingEvent=convertLeadWizardService.createEvent((Map<String,Object>)context.get("String_Node_Str"));
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    taskEvent=convertLeadWizardService.createEvent((Map<String,Object>)context.get("String_Node_Str"));
  }
  leadService.convertLead(lead,partner,contactPartner,opportunity,callEvent,meetingEvent,taskEvent);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void convertLead(ActionRequest request,ActionResponse response) throws AxelorException {
  Context context=request.getContext();
  Map<String,Object> leadContext=(Map<String,Object>)context.get("String_Node_Str");
  Lead lead=Lead.find(((Integer)leadContext.get("String_Node_Str")).longValue());
  Partner partner=null;
  Partner contactPartner=null;
  Opportunity opportunity=null;
  Event callEvent=null;
  Event meetingEvent=null;
  Event taskEvent=null;
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    contactPartner=convertLeadWizardService.createPartner((Map<String,Object>)context.get("String_Node_Str"));
  }
 else   if (context.get("String_Node_Str") != null) {
    Map<String,Object> selectContactContext=(Map<String,Object>)context.get("String_Node_Str");
    contactPartner=Partner.find(((Integer)selectContactContext.get("String_Node_Str")).longValue());
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    partner=convertLeadWizardService.createPartner((Map<String,Object>)context.get("String_Node_Str"));
  }
 else   if (context.get("String_Node_Str") != null) {
    Map<String,Object> selectPartnerContext=(Map<String,Object>)context.get("String_Node_Str");
    partner=Partner.find(((Integer)selectPartnerContext.get("String_Node_Str")).longValue());
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    opportunity=convertLeadWizardService.createOpportunity((Map<String,Object>)context.get("String_Node_Str"));
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    callEvent=convertLeadWizardService.createEvent((Map<String,Object>)context.get("String_Node_Str"));
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    meetingEvent=convertLeadWizardService.createEvent((Map<String,Object>)context.get("String_Node_Str"));
  }
  if (context.get("String_Node_Str") != null && (Boolean)context.get("String_Node_Str")) {
    taskEvent=convertLeadWizardService.createEvent((Map<String,Object>)context.get("String_Node_Str"));
  }
  leadService.convertLead(lead,partner,contactPartner,opportunity,callEvent,meetingEvent,taskEvent);
  response.setFlash("String_Node_Str");
}