Create an instance of a class from a specific registry.
Type of the registry class constructor
The name of the registry
The class itself or name of the class to instantiate
Arguments to pass to the class constructor
If the class cannot be instantiated
Create an instance of a class from a specific registry.