Fixes for REGISTRY-2202 (To work in setups with mounts in two DBs) and R...

...EGISTRY-2190 (to use get instead of getMetaData)