public Object clone(){
  SimpleAttributeSet attr;
  try {
    attr=(SimpleAttributeSet)super.clone();
    attr.table=(LinkedHashMap)table.clone();
  }
 catch (  CloneNotSupportedException cnse) {
    attr=null;
  }
  return attr;
}

public Object clone ( ) { SimpleAttributeSet attr ; try { attr = ( SimpleAttributeSet ) super . clone ( ) ; attr . table = ( LinkedHashMap ) table . clone ( ) ; } catch ( CloneNotSupportedException cnse ) { attr = null ; } return attr ; }
clones a set of attributes .
