public void addAttribute(AttributeInfo info){
  AttributeInfo.remove(attributes,info.getName());
  attributes.add(info);
}

public void addAttribute ( AttributeInfo info ) { AttributeInfo . remove ( attributes , info . getName ( ) ) ; attributes . add ( info ) ; }
appends an attribute . if there is already an attribute with the same name , the new one substitutes for it .
