In an action against a sheriff or other officer for the recovery of property taken under an execution, and replevied by the plaintiff in such action, the court may, upon application of the defendant and of the party in whose favor the execution issued, permit the latter to be substituted as the defendant, security for the costs being given.
Neb. Rev. Stat. §§ 25-327