If the surrender is to the court, the court shall make such order as it deems proper; if the surrender is to a sheriff or jailer, the officer to whom the accused has been surrendered shall give the surety a certificate of the fact. After such surrender the person shall be treated in accordance with the provisions of Article 1 (§ 19.2-119 et seq.) of Chapter 9 of this title unless the court or judge thereof has reason to believe that no one or more conditions of release will reasonably assure that the person will not flee or pose a danger to any other person or to the community.
Va. Code § 19.2-150