If, in a real or mixed action, the plaintiff dies before final judgment, his heir or devisee of the land demanded or of the right of action may, within such time as the court allows, appear and prosecute the action in the same manner as if commenced by him. If the first estate in possession under a devise is not a fee simple, the devisee of the first freehold estate in possession may appear and prosecute, and the judgment, if in his favor, shall be conformed to his title.
Mass. Gen. Laws ch. 228, § 8