public synchronized void remove(String name){
  for (int i=0; i < modifications.size(); i++) {
    Modification mod=modifications.get(i);
    Attribute attr=mod.getAttribute();
    if (name.equalsIgnoreCase(attr.getAttributeDescriptionAsString())) {
      modifications.remove(i);
      return;
    }
  }
}

public synchronized void remove ( String name ) { for ( int i = 0 ; i < modifications . size ( ) ; i ++ ) { Modification mod = modifications . get ( i ) ; Attribute attr = mod . getAttribute ( ) ; if ( name . equalsIgnoreCase ( attr . getAttributeDescriptionAsString ( ) ) ) { modifications . remove ( i ) ; return ; } } }
removes the first attribute with the specified name in the set of modifications .
