def METHOD_NAME(self, path):
    """
    Fetches the registry file and checks if an entry for the given path exists
    If the path exists, the state for the given path is returned
    If a path exists multiple times (which is possible because of file rotation)
    the most recent version is returned
    """
    def hasPath(entry):
        return entry["source"] == path
    entries = self.get_registry(filter=hasPath)
    entries.sort(key=lambda x: x["timestamp"])
    # return entry with largest timestamp
    return None if len(entries) == 0 else entries[-1]