<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, ):
 """Replace the current reftrack :returns: None :rtype: None :raises: None """

        tfi = self.get_taskfileinfo_selection()
        if tfi:
            self.reftrack.replace(tfi)