If it appears that the defendant is bail for the plaintiff or that, as his child, ward, apprentice or otherwise, he is entitled to his custody, he shall have judgment for a redelivery of his body, to be held or disposed of according to law.
14 M.R.S. § 7356