finished refactoring RootTableBuilder.java