RootReference is not a singleton and JavaTypeFactory has been added.