The provisions of Chapter XLII of the Code of Criminal Procedure, 1898, shall, so far as may be, apply to bonds taken under this Act. ...