question: public final void createWrappedStructure ( final WrapperFactory factory ) { HierarchyWrapper currentWrapper = null ; for ( Content child : castToContentList ( elementContent ) ) { Wrapper < ? > wrapper = factory . create ( child ) ; if ( wrapper instanceof ThrowAwayContentWrapper ) { continue ; } if ( currentWrapper == null ) { currentWrapper = new HierarchyWrapper ( wrapper ) ; children . add ( currentWrapper ) ; } else { currentWrapper . addContent ( wrapper ) ; } if ( currentWrapper . containsElement ( ) ) { currentWrapper . createWrappedStructure ( factory ) ; currentWrapper = null ; } } }
target:  Traverses the initial xml element wrapper and builds hierarchy 