Program: 73113
Project: 73113
Buggy source:
/** 
 * Provide content to the specified web exporter to be included in a web page. This class provides a default title for the web page and for each object as specified by <i>include</i> and <i>instancesOf</i>.
 * @param exporter  The web exporter to which to write content.
 * @exception IllegalActionException If something is wrong with the webcontent or the object already has an attribute with the same name as the the created WebAttribute
 */
protected void _provideAttributes(WebExporter exporter) throws IllegalActionException {
  WebAttribute webAttribute;
  String titleValue=stringValue();
  if (titleValue == null || titleValue.equals("String_Node_Str")) {
    titleValue=toplevel().getName();
  }
  exporter.setTitle(titleValue,((BooleanToken)showTitleInHTML.getToken()).booleanValue());
  webAttribute=WebAttribute.createWebAttribute(getContainer(),"String_Node_Str","String_Node_Str");
  webAttribute.setExpression(titleValue);
  exporter.defineAttribute(webAttribute,true);
  boolean entities=false, attributes=false;
  String includeValue=include.stringValue().toLowerCase();
  if (includeValue.equals("String_Node_Str")) {
    entities=true;
    attributes=true;
  }
 else   if (includeValue.equals("String_Node_Str")) {
    entities=true;
  }
 else   if (includeValue.equals("String_Node_Str")) {
    attributes=true;
  }
  List<NamedObj> objects;
  String instances=instancesOf.stringValue();
  NamedObj container=getContainer();
  if (entities && container instanceof CompositeEntity) {
    if (instances.trim().equals("String_Node_Str")) {
      objects=((CompositeEntity)container).entityList();
    }
 else {
      try {
        Class restrict=Class.forName(instances);
        objects=((CompositeEntity)container).entityList(restrict);
      }
 catch (      ClassNotFoundException e) {
        throw new IllegalActionException(this,"String_Node_Str" + instances);
      }
    }
    for (    NamedObj object : objects) {
      webAttribute=WebAttribute.createWebAttribute(object,"String_Node_Str","String_Node_Str");
      webAttribute.setExpression(object.getName());
      exporter.defineAttribute(webAttribute,true);
    }
  }
  if (attributes) {
    if (instances.trim().equals("String_Node_Str")) {
      objects=((CompositeEntity)container).attributeList();
    }
 else {
      try {
        Class restrict=Class.forName(instances);
        objects=((CompositeEntity)container).attributeList(restrict);
      }
 catch (      ClassNotFoundException e) {
        throw new IllegalActionException(this,"String_Node_Str" + instances);
      }
    }
    for (    NamedObj object : objects) {
      webAttribute=WebAttribute.createWebAttribute(object,"String_Node_Str","String_Node_Str");
      webAttribute.setExpression(object.getName());
      exporter.defineAttribute(webAttribute,true);
    }
  }
}

Fixed version (ground truth):
/** 
 * Provide content to the specified web exporter to be included in a web page. This class provides a default title for the web page and for each object as specified by <i>include</i> and <i>instancesOf</i>.
 * @param exporter  The web exporter to which to write content.
 * @exception IllegalActionException If something is wrong with the webcontent or the object already has an attribute with the same name as the the created WebAttribute
 */
protected void _provideAttributes(WebExporter exporter) throws IllegalActionException {
  WebAttribute webAttribute;
  String titleValue=stringValue();
  if (titleValue == null || titleValue.equals("String_Node_Str")) {
    titleValue=toplevel().getDisplayName();
  }
  exporter.setTitle(titleValue,((BooleanToken)showTitleInHTML.getToken()).booleanValue());
  webAttribute=WebAttribute.createWebAttribute(getContainer(),"String_Node_Str","String_Node_Str");
  webAttribute.setExpression(titleValue);
  exporter.defineAttribute(webAttribute,true);
  boolean entities=false, attributes=false;
  String includeValue=include.stringValue().toLowerCase();
  if (includeValue.equals("String_Node_Str")) {
    entities=true;
    attributes=true;
  }
 else   if (includeValue.equals("String_Node_Str")) {
    entities=true;
  }
 else   if (includeValue.equals("String_Node_Str")) {
    attributes=true;
  }
  List<NamedObj> objects;
  String instances=instancesOf.stringValue();
  NamedObj container=getContainer();
  if (entities && container instanceof CompositeEntity) {
    if (instances.trim().equals("String_Node_Str")) {
      objects=((CompositeEntity)container).entityList();
    }
 else {
      try {
        Class restrict=Class.forName(instances);
        objects=((CompositeEntity)container).entityList(restrict);
      }
 catch (      ClassNotFoundException e) {
        throw new IllegalActionException(this,"String_Node_Str" + instances);
      }
    }
    for (    NamedObj object : objects) {
      webAttribute=WebAttribute.createWebAttribute(object,"String_Node_Str","String_Node_Str");
      webAttribute.setExpression(object.getDisplayName());
      exporter.defineAttribute(webAttribute,true);
    }
  }
  if (attributes) {
    if (instances.trim().equals("String_Node_Str")) {
      objects=((CompositeEntity)container).attributeList();
    }
 else {
      try {
        Class restrict=Class.forName(instances);
        objects=((CompositeEntity)container).attributeList(restrict);
      }
 catch (      ClassNotFoundException e) {
        throw new IllegalActionException(this,"String_Node_Str" + instances);
      }
    }
    for (    NamedObj object : objects) {
      webAttribute=WebAttribute.createWebAttribute(object,"String_Node_Str","String_Node_Str");
      webAttribute.setExpression(object.getDisplayName());
      exporter.defineAttribute(webAttribute,true);
    }
  }
}