code: public void appendChild(int newChild, boolean clone, boolean cloneDepth) {
                  boolean sameDoc = ((newChild & DOCHANDLE_MASK) == m_docHandle);
                  if (clone || !sameDoc) {
  
                  } else {
  
                  }
          }
docs: Append a child to the end of the child list of the current node. Please note that the node
  is always cloned if it is owned by another document.
  
  <p>%REVIEW% "End of the document" needs to be defined more clearly.
  Does it become the last child of the Document? Of the root element?</p>
  
  @param newChild Must be a valid new node handle.
  @param clone true if the child should be cloned into the document.
  @param cloneDepth if the clone argument is true, specifies that the
  clone should include all it's children.