getDefaultRegistry function

Get and Set the Default Registry