'Find a resource matching `name`.'

def find(self, name):

    (prefix, path) = self.split_prefix(name)
    if ((prefix == '') and self.match(path)):
        return path
    elif self.is_valid_prefixed(path):
        for (pp, search_path) in self.search_paths():
            if ((pp == prefix) and self.match(os.path.join(search_path, path))):
                return os.path.join(search_path, path)
    return None
