code: def replace(self, refobj, taskfileinfo):
          
          inter = self.get_typ_interface(self.get_typ(refobj))
          ref = self.get_reference(refobj)
          inter.replace(refobj, ref, taskfileinfo)
docs: Replace the given refobjs reference with the taskfileinfo
  
          This will call :meth:`ReftypeInterface.replace`.
  
          :param refobj: the refobject
          :type refobj: refobj
          :param taskfileinfo: the taskfileinfo that will replace the old entity
          :type taskfileinfo: :class:`jukeboxcore.filesys.TaskFileInfo`
          :returns: None
          :rtype: None
          :raises: None