Added TreeBuilder as parameter to the converter constructor