add FactoryRegistry
throw exception