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);
}

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 ) ; }
add node to tree . if not found add to buffer
