question: protected List < TreeNode > createChildList ( ) { Branch branch = getXmlBranch ( ) ; int size = branch . nodeCount ( ) ; List < TreeNode > childList = new ArrayList < TreeNode > ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { Node node = branch . node ( i ) ; if ( node instanceof CharacterData ) { String text = node . getText ( ) ; if ( text == null ) { continue ; } text = text . trim ( ) ; if ( text . length ( ) <= 0 ) { continue ; } } childList . add ( createChildTreeNode ( node ) ) ; } return childList ; }
target:  Factory method to create List of children TreeNodes