question: private void addToTree ( int node_ID , int parent_ID , int seqNo , boolean onBar ) { MTreeNode child = getNodeDetail ( node_ID , parent_ID , seqNo , onBar ) ; if ( child == null ) return ; MTreeNode parent = null ; if ( m_root != null ) parent = m_root . findNode ( parent_ID ) ; if ( parent != null && parent . getAllowsChildren ( ) ) { parent . add ( child ) ; if ( m_buffer . size ( ) > 0 ) checkBuffer ( child ) ; } else m_buffer . add ( child ) ; }
target:  Add Node to Tree. If not found add to buffer