Converted ContextTreeBuilder static members to instance mebers