added support for default values in registry get method