Add the default state to each TreeNode when creating a working pattern. Each node is required and for each TEXT node its content is extracted.