(2) A security deposit is sufficient therefor in all respects as if the action had proceeded to final determination in the court where it was commenced. [1973 c.836 §24]