Program: 74918
Project: 74918
Buggy source:
/** 
 * Construct an attribute with the given name contained by the specified container. The container argument must not be null, or a NullPointerException will be thrown.  This attribute will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string. Increment the version of the workspace.
 * @param container The container.
 * @param name The name of this attribute.
 * @exception IllegalActionException If the attribute is not of anacceptable class for the container, or if the name contains a period.
 * @exception NameDuplicationException If the name coincides withan attribute already in the container.
 */
public IDAttribute(Entity container,String name) throws IllegalActionException, NameDuplicationException {
  super(container,name);
  this.name=new StringAttribute(this,"String_Node_Str");
  this.name.setExpression(container.getName());
  this.name.setPersistent(false);
  this.name.setVisibility(Settable.NOT_EDITABLE);
  if (container instanceof InstantiableNamedObj) {
    ((InstantiableNamedObj)container).isClassDefinition();
  }
  String className=container.getClassName();
  baseClass=new StringAttribute(this,"String_Node_Str");
  baseClass.setExpression(className);
  baseClass.setPersistent(false);
  baseClass.setVisibility(Settable.NOT_EDITABLE);
  URIAttribute modelURI=(URIAttribute)container.getAttribute("String_Node_Str",URIAttribute.class);
  if (modelURI != null) {
    StringAttribute definedIn=new StringAttribute(this,"String_Node_Str");
    definedIn.setExpression(modelURI.getURI().toString());
    definedIn.setPersistent(false);
    definedIn.setVisibility(Settable.NOT_EDITABLE);
  }
  created=new StringAttribute(this,"String_Node_Str");
  created.setExpression(DateFormat.getDateTimeInstance().format(new Date()));
  created.setVisibility(Settable.NOT_EDITABLE);
  created.setPersistent(true);
  lastUpdated=new StringAttribute(this,"String_Node_Str");
  _updateDate();
  lastUpdated.setVisibility(Settable.NOT_EDITABLE);
  lastUpdated.setPersistent(true);
  author=new StringAttribute(this,"String_Node_Str");
  author.setVisibility(Settable.NOT_EDITABLE);
  String userName=null;
  try {
    userName=StringUtilities.getProperty("String_Node_Str");
  }
 catch (  Exception ex) {
    System.out.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  }
  if (userName != null) {
    author.setExpression(userName);
  }
  author.setPersistent(true);
  contributors=new StringAttribute(this,"String_Node_Str");
  String contributorsNames="String_Node_Str";
  contributors.setExpression(contributorsNames);
  author.setPersistent(true);
  SingletonParameter hide=new SingletonParameter(this,"String_Node_Str");
  hide.setToken(BooleanToken.TRUE);
  hide.setVisibility(Settable.EXPERT);
  BoxedValuesIcon icon=new BoxedValuesIcon(this,"String_Node_Str");
  icon.setPersistent(false);
  Parameter hideAllParameters=new Parameter(this,"String_Node_Str");
  hideAllParameters.setVisibility(Settable.EXPERT);
  hideAllParameters.setExpression("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Construct an attribute with the given name contained by the specified container. The container argument must not be null, or a NullPointerException will be thrown.  This attribute will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string. Increment the version of the workspace.
 * @param container The container.
 * @param name The name of this attribute.
 * @exception IllegalActionException If the attribute is not of anacceptable class for the container, or if the name contains a period.
 * @exception NameDuplicationException If the name coincides withan attribute already in the container.
 */
public IDAttribute(Entity container,String name) throws IllegalActionException, NameDuplicationException {
  super(container,name);
  this.name=new StringAttribute(this,"String_Node_Str");
  this.name.setExpression(container.getName());
  this.name.setPersistent(false);
  this.name.setVisibility(Settable.NOT_EDITABLE);
  ((InstantiableNamedObj)container).isClassDefinition();
  String className=container.getClassName();
  baseClass=new StringAttribute(this,"String_Node_Str");
  baseClass.setExpression(className);
  baseClass.setPersistent(false);
  baseClass.setVisibility(Settable.NOT_EDITABLE);
  URIAttribute modelURI=(URIAttribute)container.getAttribute("String_Node_Str",URIAttribute.class);
  if (modelURI != null) {
    StringAttribute definedIn=new StringAttribute(this,"String_Node_Str");
    definedIn.setExpression(modelURI.getURI().toString());
    definedIn.setPersistent(false);
    definedIn.setVisibility(Settable.NOT_EDITABLE);
  }
  created=new StringAttribute(this,"String_Node_Str");
  created.setExpression(DateFormat.getDateTimeInstance().format(new Date()));
  created.setVisibility(Settable.NOT_EDITABLE);
  created.setPersistent(true);
  lastUpdated=new StringAttribute(this,"String_Node_Str");
  _updateDate();
  lastUpdated.setVisibility(Settable.NOT_EDITABLE);
  lastUpdated.setPersistent(true);
  author=new StringAttribute(this,"String_Node_Str");
  author.setVisibility(Settable.NOT_EDITABLE);
  String userName=null;
  try {
    userName=StringUtilities.getProperty("String_Node_Str");
  }
 catch (  Exception ex) {
    System.out.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  }
  if (userName != null) {
    author.setExpression(userName);
  }
  author.setPersistent(true);
  contributors=new StringAttribute(this,"String_Node_Str");
  String contributorsNames="String_Node_Str";
  contributors.setExpression(contributorsNames);
  author.setPersistent(true);
  SingletonParameter hide=new SingletonParameter(this,"String_Node_Str");
  hide.setToken(BooleanToken.TRUE);
  hide.setVisibility(Settable.EXPERT);
  BoxedValuesIcon icon=new BoxedValuesIcon(this,"String_Node_Str");
  icon.setPersistent(false);
  Parameter hideAllParameters=new Parameter(this,"String_Node_Str");
  hideAllParameters.setVisibility(Settable.EXPERT);
  hideAllParameters.setExpression("String_Node_Str");
}