When the person on whose behalf the writ is granted is not in the custody of a public officer, the judge issuing it, for good cause shown, may direct the person serving it to take the person detained into his custody and produce him on the return of the writ.
KRS 419.050