Made TextUtil public (and documented it)
Added first adapted version of the block-and-node selection artifacts (from thymeleaf).