public void destroy(){
  for (int i=0; i < rules.size(); i++) {
    final Rule rule=(Rule)rules.get(i);
    rule.destroy();
  }
}

public void destroy ( ) { for ( int i = 0 ; i < rules . size ( ) ; i ++ ) { final Rule rule = ( Rule ) rules . get ( i ) ; rule . destroy ( ) ; } }
destory the conf gracefully .
