If, at the time of taking such deposition or afterward, an action is pending between the petitioner and the persons named in his application or any of those who were notified as aforesaid, or any persons claiming under any of said persons, relative to the title, claim or interest set forth in the application, the deposition or a certified copy of it from the registry of deeds may be used in such action in the same manner and subject to the same conditions and objections as if it had been originally taken therefor.
Mass. Gen. Laws ch. 233, § 51