This should be rather than in __generateRootModules(). Loop over self.__rootModules is also done in getObjects()