<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def replace(self, refobj, taskfileinfo):
 """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 """

        inter = self.get_typ_interface(self.get_typ(refobj))
        ref = self.get_reference(refobj)
        inter.replace(refobj, ref, taskfileinfo)