def load(cls, path):
        """Load a resolved context from file."""
        with open(path) as f:
            context = cls.read_from_buffer(f, path)
        context.set_load_path(path)
        return context