The court shall set a date for a hearing on the petition within 5 days, excluding Saturdays, Sundays and holidays, after the filing of the petition. The hearing shall be conducted in the manner prescribed in Article VIII of Chapter III of the "Mental Health and Developmental Disabilities Code", as now and hereafter amended. If the jury by its verdict, or the court if no jury is requested, finds that the named person is not subject to involuntary admission, he shall be returned to the institution to which he was sentenced and committed. If the jury by its verdict, or the court if no jury is requested, finds that the named person is subject to involuntary admission, the court shall commit him to the Department of Human Services. If the named person is deemed no longer subject to involuntary admission and the time for which he was sentenced has not expired, he shall be returned by the Department of Human Services to the penal or correctional institution from which he was committed to finish his original sentence. If the time has expired, he shall be discharged in accordance with Article IX of Chapter III of the "Mental Health and Developmental Disabilities Code", as now and hereafter amended.
405 ILCS 15/2