finalized (?) RegistryUtil with db-logging of weird cases and leniency in the pronouncing of whether a resource is a registry or not