question: private void checkBuffer ( MTreeNode newNode ) { if ( ! newNode . isSummary ( ) || ! newNode . getAllowsChildren ( ) ) return ; for ( int i = 0 ; i < m_buffer . size ( ) ; i ++ ) { MTreeNode node = ( MTreeNode ) m_buffer . get ( i ) ; if ( node . getParent_ID ( ) == newNode . getNode_ID ( ) ) { try { newNode . add ( node ) ; } catch ( Exception e ) { log . severe ( "Adding " + node . getName ( ) + " to " + newNode . getName ( ) + ": " + e . getMessage ( ) ) ; } m_buffer . remove ( i ) ; i -- ; } } }
target:  Check the buffer for nodes which have newNode as Parents