If the goods when replevied had been taken on execution, or if they had been attached and judgment is afterward rendered for the attaching creditor, and if in either case the service of the execution is delayed by reason of the replevin, the damages to be assessed for the defendant upon a judgment for a return shall be at the rate of not less than twelve per cent a year on the value of the goods for the time during which the service of the execution was so delayed.
Mass. Gen. Laws ch. 247, § 10