If such demolition of a building is the means of stopping the fire or if the fire stops before it comes to it, the owner shall be entitled to recover reasonable compensation from the town unless it was the building in which the fire started. Such compensation shall be determined and recovered under chapter seventy-nine, as if the building demolished were taken by eminent domain.
Mass. Gen. Laws ch. 48, § 5