(5) Where a refusal to register is referred to the court under subsection (4), the court, after hearing the person who lodged the prospectus, and, if the court so wishes, the Registrar, may order the Registrar to register the prospectus, or it may uphold his or her decision to refuse registration.