@classmethod
    def bind_to_original(cls):
        # get all reference paths
        import os
        from stalker import Repository, Version

        for ref in pm.listReferences():
            unresolved_path = ref.unresolvedPath()
            filename = os.path.basename(unresolved_path)
            # find the corresponding version
            # TODO: get the versions from current project
            v = Version.query\
                .filter(Version.full_path.endswith(filename))\
                .first()
            if v:
                ref.replaceWith(
                    Repository.to_os_independent_path(v.absolute_full_path)
                )
binds the current scene references to original references from the
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/toolbox.py/Reference.bind_to_original