private void _cleanChildren ( ) { //bStatsTreeNeedsUpdate = true; if ( children != null ) { Iterator values = children . values ( ) . iterator ( ) ; while ( values . hasNext ( ) ) { ModuleItem remMI = ( ModuleItem ) values . next ( ) ; remMI . getInstance ( ) . cleanup ( ) ; //_cleanMBean(remMI); remMI . _cleanChildren ( ) ; remMI = null ; } children . clear ( ) ; } }
recursively remove reference to child ModuleItem from children ArrayList