Program: 75690
Project: 75690
Buggy source:
/** 
 * Write a MoML description of the contents of this object, which in this class is the configuration information. This method is called by exportMoML().  Each description is indented according to the specified depth and terminated with a newline character.
 * @param output The output stream to write to.
 * @param depth The depth in the hierarchy, to determine indenting.
 * @exception IOException If an I/O error occurs.
 */
protected void _exportMoMLContents(Writer output,int depth) throws IOException {
  super._exportMoMLContents(output,depth);
  String header="String_Node_Str" + "String_Node_Str";
  if (plot != null) {
    output.write(_getIndentPrefix(depth) + "String_Node_Str" + header+ "String_Node_Str");
    PrintWriter print=new PrintWriter(output);
    plot.writeFormat(print);
    output.write("String_Node_Str" + _getIndentPrefix(depth) + "String_Node_Str");
  }
 else   if (_configureSources != null) {
    Iterator sources=_configureSources.iterator();
    Iterator texts=_configureTexts.iterator();
    while (sources.hasNext()) {
      String source=(String)sources.next();
      String text=(String)texts.next();
      if (source != null && !source.trim().equals("String_Node_Str")) {
        output.write(_getIndentPrefix(depth) + "String_Node_Str" + source+ "String_Node_Str");
      }
 else {
        output.write(_getIndentPrefix(depth) + "String_Node_Str");
      }
      if (text != null) {
        output.write(text.trim() + "String_Node_Str");
      }
      output.write(_getIndentPrefix(depth) + "String_Node_Str");
    }
  }
}

Fixed version (ground truth):
/** 
 * Write a MoML description of the contents of this object, which in this class is the configuration information. This method is called by exportMoML().  Each description is indented according to the specified depth and terminated with a newline character.
 * @param output The output stream to write to.
 * @param depth The depth in the hierarchy, to determine indenting.
 * @exception IOException If an I/O error occurs.
 */
protected void _exportMoMLContents(Writer output,int depth) throws IOException {
  super._exportMoMLContents(output,depth);
  String header="String_Node_Str" + "String_Node_Str";
  if (plot != null) {
    output.write(_getIndentPrefix(depth) + "String_Node_Str" + header+ "String_Node_Str");
    PrintWriter print=new PrintWriter(output);
    plot.writeFormat(print);
    output.write("String_Node_Str" + _getIndentPrefix(depth) + "String_Node_Str");
  }
 else   if (_configureSources != null) {
    Iterator sources=_configureSources.iterator();
    Iterator texts=_configureTexts.iterator();
    while (sources.hasNext()) {
      String source=(String)sources.next();
      String text=(String)texts.next();
      if (source != null && !source.trim().equals("String_Node_Str")) {
        output.write(_getIndentPrefix(depth) + "String_Node_Str" + source+ "String_Node_Str");
        if (text != null) {
          output.write("String_Node_Str");
        }
      }
 else {
        output.write(_getIndentPrefix(depth) + "String_Node_Str");
      }
      if (text != null) {
        output.write(text.trim() + "String_Node_Str");
        if (source != null && !source.trim().equals("String_Node_Str")) {
          output.write(_getIndentPrefix(depth) + "String_Node_Str");
        }
      }
      output.write(_getIndentPrefix(depth) + "String_Node_Str");
    }
  }
}