docs: def get_brain_by_uid(self, uid):
          """Lookup brain from the right catalog
          """
          if uid == "0":
              return api.get_portal()
  
          # ensure we have the primary catalog
          if self._catalog is None:
              uid_catalog = api.get_tool("uid_catalog")
              results = uid_catalog({"UID": uid})
              if len(results) != 1:
                  raise ValueError("No object found for UID '{}'".format(uid))
              brain = results[0]
              self._catalog = self.get_catalog_for(brain)
  
          # Fetch the brain with the primary catalog
          results = self.catalog({"UID": uid})
          if not results:
              raise ValueError("No results found for UID '{}'".format(uid))
          if len(results) != 1:
              raise ValueError("Found more than one object for UID '{}'"
                               .format(uid))
          return results[0]