javadoced
TreeBuilder reimplemented