The Attorney General shall defend all civil actions and proceedings against any employee or agent of the Department arising out of official duties in connection with the apprehension, transportation, examination, services, detention or discharge of any individual under this Act, in any of the courts of this State or in federal court.
405 ILCS 5/5-117