Facade.find_by_uri_or_domain was not resolving leftmost names first. priority was given to longest names, which is necessary, but not sufficient