Program: 190700
Project: 190700
Buggy source:
/** 
 * Writes out the episode file.
 */
public void writeEpisodeFile(XmlSerializer out){
  Bindings root=TXW.create(Bindings.class,out);
  if (namespaces.containsKey("String_Node_Str"))   root._namespace(WellKnownNamespace.JAXB,"String_Node_Str");
  root.version("String_Node_Str");
  for (  Map.Entry<String,Namespace> e : namespaces.entrySet()) {
    Bindings group=root.bindings();
    String prefix;
    String tns=e.getKey();
    if (!tns.equals("String_Node_Str")) {
      group._namespace(tns,"String_Node_Str");
      prefix="String_Node_Str";
    }
 else {
      prefix="String_Node_Str";
    }
    group.scd("String_Node_Str" + (tns.equals("String_Node_Str") ? "String_Node_Str" : "String_Node_Str"));
    group.schemaBindings().map(false);
    for (    ClassInfo<T,C> ci : e.getValue().classes) {
      if (ci.getTypeName() == null)       continue;
      Bindings child=group.bindings();
      child.scd('~' + prefix + ci.getTypeName().getLocalPart());
      child.klass().ref(ci.getName());
      if (ci.isElement()) {
        child=group.bindings();
        child.scd(prefix + ci.getElementName().getLocalPart());
        child.klass().ref(ci.getName());
      }
    }
    for (    EnumLeafInfo<T,C> en : e.getValue().enums) {
      if (en.getTypeName() == null)       continue;
      Bindings child=group.bindings();
      child.scd('~' + prefix + en.getTypeName().getLocalPart());
      child.klass().ref(navigator.getClassName(en.getClazz()));
    }
    group.commit(true);
  }
  root.commit();
}

Fixed version (ground truth):
/** 
 * Writes out the episode file.
 */
public void writeEpisodeFile(XmlSerializer out){
  Bindings root=TXW.create(Bindings.class,out);
  if (namespaces.containsKey("String_Node_Str"))   root._namespace(WellKnownNamespace.JAXB,"String_Node_Str");
  root.version("String_Node_Str");
  for (  Map.Entry<String,Namespace> e : namespaces.entrySet()) {
    Bindings group=root.bindings();
    String prefix;
    String tns=e.getKey();
    if (!tns.equals("String_Node_Str")) {
      group._namespace(tns,"String_Node_Str");
      prefix="String_Node_Str";
    }
 else {
      prefix="String_Node_Str";
    }
    group.scd("String_Node_Str" + (tns.equals("String_Node_Str") ? "String_Node_Str" : "String_Node_Str"));
    group.schemaBindings().map(false);
    for (    ClassInfo<T,C> ci : e.getValue().classes) {
      if (ci.getTypeName() == null)       continue;
      if (ci.getTypeName().getNamespaceURI().equals(tns)) {
        Bindings child=group.bindings();
        child.scd('~' + prefix + ci.getTypeName().getLocalPart());
        child.klass().ref(ci.getName());
      }
      if (ci.isElement() && ci.getElementName().getNamespaceURI().equals(tns)) {
        Bindings child=group.bindings();
        child.scd(prefix + ci.getElementName().getLocalPart());
        child.klass().ref(ci.getName());
      }
    }
    for (    EnumLeafInfo<T,C> en : e.getValue().enums) {
      if (en.getTypeName() == null)       continue;
      Bindings child=group.bindings();
      child.scd('~' + prefix + en.getTypeName().getLocalPart());
      child.klass().ref(navigator.getClassName(en.getClazz()));
    }
    group.commit(true);
  }
  root.commit();
}