To allow the state's attorney to make application for commitment of certain acquittees to a hospital for psychiatric disabilities prior to the acquittee's discharge at the expiration of the acquittee's maximum term of commitment if the acquittee would constitute a danger to himself or herself or others or is gravely disabled.