Add generic function for retrieve information from the registry