If the court finds that the person is not the same person named in the habitual offender transcript or abstract, or that the person is not an habitual offender under this chapter, the proceeding shall be dismissed. But if the court finds that the person is the person named in the habitual offender transcript or abstract and that the person is an habitual offender, the court shall find and by appropriate order direct the person not to operate a motor vehicle on the highways of the state of Rhode Island, and to surrender to the court all licenses or permits to operate a motor vehicle on the highways of this state. The clerk of the court shall file with the division of motor vehicles a copy of the order which shall become a part of the permanent records of the division of motor vehicles.
R.I. Gen. Laws § 31-40-6