(1) DISCHARGE AT THE AGE OF MAJORITY.—
(a) When any residential client reaches his or her 18th birthday, the agency shall give the resident or legal guardian the option to continue residential services or to be discharged from residential services.
(b) If the resident appears to meet the criteria for involuntary admission to residential services, as defined in s. 393.11, the agency shall file a petition to determine the appropriateness of continued residential placement on an involuntary basis. The agency shall file the petition for involuntary admission in the county in which the client resides. If the resident was originally involuntarily admitted to residential services pursuant to s. 393.11, then the agency shall file the petition in the court having continuing jurisdiction over the case.
(c) Nothing in this section shall in any way limit or restrict the resident’s right to a writ of habeas corpus or the right of the agency to transfer a resident receiving residential care to a program of appropriate services provided by the agency when such program is the appropriate habilitative setting for the resident.
(2) DISCHARGE AFTER CRIMINAL OR JUVENILE COMMITMENT.—Any person with developmental disabilities committed to the custody of the agency pursuant to the provisions of the applicable criminal or juvenile court law shall be discharged in accordance with the requirements of the applicable criminal or juvenile court law.