Singletons and threadregistry