If such goods, effects and credits are not of sufficient value to discharge the costs taxed in his favor, he shall have judgment and execution against the plaintiff for the balance of such costs, after deducting the amount disclosed, in the same manner as if he had been discharged.
Massachusetts Legal Code