public void deleteLeaves(String name){
  for (int i=0; i < _leaves.size(); i++) {
    CatalogTreeLeaf leaf=_leaves.get(i);
    if (name.equals(leaf.getName())) {
      _leaves.remove(i);
    }
  }
}

public void deleteLeaves ( String name ) { for ( int i = 0 ; i < _leaves . size ( ) ; i ++ ) { CatalogTreeLeaf leaf = _leaves . get ( i ) ; if ( name . equals ( leaf . getName ( ) ) ) { _leaves . remove ( i ) ; } } }
leaves can be used for many - to - many relations
