Program: 24123
Project: 24123
Buggy source:
private void generateConceptMapV3(BindingSpecification cd,String filename,String src,String srcCS) throws Exception {
  ConceptMap cm=new ConceptMap();
  cm.setIdentifier("String_Node_Str" + Utilities.fileTitle(filename));
  cm.setName("String_Node_Str" + cd.getName());
  cm.setPublisher("String_Node_Str");
  cm.getTelecom().add(org.hl7.fhir.instance.model.Factory.newContactPoint(ContactPointSystem.URL,Utilities.noString(cd.getWebSite()) ? "String_Node_Str" : cd.getWebSite()));
  cm.getTelecom().add(org.hl7.fhir.instance.model.Factory.newContactPoint(ContactPointSystem.EMAIL,Utilities.noString(cd.getEmail()) ? "String_Node_Str" : cd.getEmail()));
  if (!Utilities.noString(cd.getCopyright()))   cm.setCopyright(cd.getCopyright());
  Set<String> tbls=new HashSet<String>();
  cm.setStatus(ConceptMap.ValuesetStatus.DRAFT);
  cm.setDateElement(Factory.nowDateTime());
  cm.setSource(Factory.makeReference(src));
  cm.setTarget(Factory.makeReference(cd.getV3Map()));
  for (  DefinedCode c : cd.getCodes()) {
    if (!Utilities.noString(c.getV3Map())) {
      for (      String m : c.getV3Map().split("String_Node_Str")) {
        ConceptMapElementComponent cc=new ConceptMap.ConceptMapElementComponent();
        cc.setCodeSystem(srcCS);
        cc.setCode(c.getCode());
        ConceptMapElementMapComponent map=new ConceptMap.ConceptMapElementMapComponent();
        cc.getMap().add(map);
        cm.getElement().add(cc);
        String[] n=m.split("String_Node_Str");
        if (n.length > 1)         map.setComments(n[1].substring(0,n[1].length() - 1));
        n=n[0].split("String_Node_Str");
        if (n.length != 2)         throw new Exception("String_Node_Str" + cd.getName() + "String_Node_Str"+ c.getCode()+ "String_Node_Str"+ m+ "String_Node_Str");
        tbls.add(n[0].substring(1));
        map.setCodeSystem("String_Node_Str" + n[0].substring(1));
        map.setCode(n[1]);
        if (n[0].charAt(0) == '=')         map.setEquivalence(ConceptEquivalence.EQUAL);
        if (n[0].charAt(0) == '~')         map.setEquivalence(ConceptEquivalence.EQUIVALENT);
        if (n[0].charAt(0) == '>')         map.setEquivalence(ConceptEquivalence.NARROWER);
        if (n[0].charAt(0) == '<')         map.setEquivalence(ConceptEquivalence.WIDER);
      }
    }
  }
  StringBuilder b=new StringBuilder();
  boolean first=false;
  for (  String s : tbls) {
    if (first)     b.append("String_Node_Str");
    first=false;
    b.append(s);
  }
  cm.setDescription("String_Node_Str" + b.toString() + "String_Node_Str");
  NarrativeGenerator gen=new NarrativeGenerator("String_Node_Str",page.getWorkerContext());
  gen.generate(cm);
  JsonComposer json=new JsonComposer();
  json.compose(new FileOutputStream(page.getFolders().dstDir + Utilities.changeFileExt(filename,"String_Node_Str")),cm,true);
  String n=Utilities.changeFileExt(filename,"String_Node_Str");
  jsonToXhtml(n,cm.getName(),resource2Json(cm),"String_Node_Str");
  XmlComposer xml=new XmlComposer();
  xml.compose(new FileOutputStream(page.getFolders().dstDir + Utilities.changeFileExt(filename,"String_Node_Str")),cm,true);
  cloneToXhtml(n,cm.getName(),false,"String_Node_Str");
  String narrative=new XhtmlComposer().setXmlOnly(true).compose(cm.getText().getDiv());
  String html=TextFile.fileToString(page.getFolders().srcDir + "String_Node_Str").replace("String_Node_Str",narrative);
  html=page.processPageIncludes(Utilities.changeFileExt(filename,"String_Node_Str"),html,"String_Node_Str",null,null);
  TextFile.stringToFile(html,page.getFolders().dstDir + Utilities.changeFileExt(filename,"String_Node_Str"));
  AtomEntry<ConceptMap> e=new AtomEntry<ConceptMap>();
  e.setResource(cm);
  e.setId(cm.getIdentifier());
  e.getLinks().put("String_Node_Str",Utilities.changeFileExt(filename,"String_Node_Str"));
  e.getLinks().put("String_Node_Str",Utilities.changeFileExt(filename,"String_Node_Str"));
  conceptMapsFeed.getEntryList().add(e);
  page.getConceptMaps().put(cm.getIdentifier(),e);
  page.getEpub().registerFile(n + "String_Node_Str",cm.getName(),EPubManager.XHTML_TYPE);
  page.getEpub().registerFile(n + "String_Node_Str",cm.getName(),EPubManager.XHTML_TYPE);
  page.getEpub().registerFile(n + "String_Node_Str",cm.getName(),EPubManager.XHTML_TYPE);
}

Fixed version (ground truth):
private void generateConceptMapV3(BindingSpecification cd,String filename,String src,String srcCS) throws Exception {
  ConceptMap cm=new ConceptMap();
  cm.setIdentifier("String_Node_Str" + Utilities.fileTitle(filename));
  cm.setName("String_Node_Str" + cd.getName());
  cm.setPublisher("String_Node_Str");
  cm.getTelecom().add(org.hl7.fhir.instance.model.Factory.newContactPoint(ContactPointSystem.URL,Utilities.noString(cd.getWebSite()) ? "String_Node_Str" : cd.getWebSite()));
  cm.getTelecom().add(org.hl7.fhir.instance.model.Factory.newContactPoint(ContactPointSystem.EMAIL,Utilities.noString(cd.getEmail()) ? "String_Node_Str" : cd.getEmail()));
  if (!Utilities.noString(cd.getCopyright()))   cm.setCopyright(cd.getCopyright());
  Set<String> tbls=new HashSet<String>();
  cm.setStatus(ConceptMap.ValuesetStatus.DRAFT);
  cm.setDateElement(Factory.nowDateTime());
  cm.setSource(Factory.makeReference(src));
  cm.setTarget(Factory.makeReference(cd.getV3Map()));
  for (  DefinedCode c : cd.getCodes()) {
    if (!Utilities.noString(c.getV3Map())) {
      for (      String m : c.getV3Map().split("String_Node_Str")) {
        ConceptMapElementComponent cc=new ConceptMap.ConceptMapElementComponent();
        cc.setCodeSystem(srcCS);
        cc.setCode(c.getCode());
        ConceptMapElementMapComponent map=new ConceptMap.ConceptMapElementMapComponent();
        cc.getMap().add(map);
        cm.getElement().add(cc);
        String[] n=m.split("String_Node_Str");
        if (n.length > 1)         map.setComments(n[1].substring(0,n[1].length() - 1));
        n=n[0].split("String_Node_Str");
        if (n.length != 2)         throw new Exception("String_Node_Str" + cd.getName() + "String_Node_Str"+ c.getCode()+ "String_Node_Str"+ m+ "String_Node_Str");
        tbls.add(n[0].substring(1));
        map.setCodeSystem("String_Node_Str" + n[0].substring(1));
        map.setCode(n[1]);
        if (n[0].charAt(0) == '=')         map.setEquivalence(ConceptEquivalence.EQUAL);
        if (n[0].charAt(0) == '~')         map.setEquivalence(ConceptEquivalence.EQUIVALENT);
        if (n[0].charAt(0) == '>')         map.setEquivalence(ConceptEquivalence.NARROWER);
        if (n[0].charAt(0) == '<')         map.setEquivalence(ConceptEquivalence.WIDER);
      }
    }
  }
  StringBuilder b=new StringBuilder();
  boolean first=false;
  for (  String s : tbls) {
    if (first)     b.append("String_Node_Str");
    first=true;
    b.append(s);
  }
  cm.setDescription("String_Node_Str" + b.toString() + "String_Node_Str");
  NarrativeGenerator gen=new NarrativeGenerator("String_Node_Str",page.getWorkerContext());
  gen.generate(cm);
  JsonComposer json=new JsonComposer();
  json.compose(new FileOutputStream(page.getFolders().dstDir + Utilities.changeFileExt(filename,"String_Node_Str")),cm,true);
  String n=Utilities.changeFileExt(filename,"String_Node_Str");
  jsonToXhtml(n,cm.getName(),resource2Json(cm),"String_Node_Str");
  XmlComposer xml=new XmlComposer();
  xml.compose(new FileOutputStream(page.getFolders().dstDir + Utilities.changeFileExt(filename,"String_Node_Str")),cm,true);
  cloneToXhtml(n,cm.getName(),false,"String_Node_Str");
  String narrative=new XhtmlComposer().setXmlOnly(true).compose(cm.getText().getDiv());
  String html=TextFile.fileToString(page.getFolders().srcDir + "String_Node_Str").replace("String_Node_Str",narrative);
  html=page.processPageIncludes(Utilities.changeFileExt(filename,"String_Node_Str"),html,"String_Node_Str",null,null);
  TextFile.stringToFile(html,page.getFolders().dstDir + Utilities.changeFileExt(filename,"String_Node_Str"));
  AtomEntry<ConceptMap> e=new AtomEntry<ConceptMap>();
  e.setResource(cm);
  e.setId(cm.getIdentifier());
  e.getLinks().put("String_Node_Str",Utilities.changeFileExt(filename,"String_Node_Str"));
  e.getLinks().put("String_Node_Str",Utilities.changeFileExt(filename,"String_Node_Str"));
  conceptMapsFeed.getEntryList().add(e);
  page.getConceptMaps().put(cm.getIdentifier(),e);
  page.getEpub().registerFile(n + "String_Node_Str",cm.getName(),EPubManager.XHTML_TYPE);
  page.getEpub().registerFile(n + "String_Node_Str",cm.getName(),EPubManager.XHTML_TYPE);
  page.getEpub().registerFile(n + "String_Node_Str",cm.getName(),EPubManager.XHTML_TYPE);
}