(a) Any such courts shall provide for the representation of indigent defendants by a public defender's office. (b) The public defender shall be appointed in accordance with the provisions ofsubsection (a) of