Section 21. Any person aggrieved by any order, rule or regulation adopted by, or other decision of, the commissioner may, by petition filed within twenty days after the publication or service of such order, rule, regulation or decision, obtain a review by the superior court of the proceedings of the commissioner on which such order, rule, regulation or decision was based. A copy of such petition, attested by the clerk of the court, shall be forthwith served upon the commissioner. The petitioner shall file in the court a transcript of the entire record in the proceedings, certified by the commissioner, including the notice, the testimony received and the findings and order or decision of the commissioner. The order, rule, regulation or decision of the commissioner shall be reviewed in accordance with the standards for review provided in paragraph (7) of section fourteen of chapter thirty A. No objection not urged before the commissioner shall be considered in review. The court may, in its discretion, remit the record to the commissioner for the correction of errors or for the taking of additional evidence. Prior to the entry of a decree of revision or reversal, no order shall be made to stay or supersede any order, rule, regulation or decision of the commissioner, nor shall any court in any proceeding restrain or enjoin the commissioner or restrain or enjoin enforcement of an order, rule, regulation or decision adopted by the commissioner, except after a hearing of which the commissioner shall have received not less than two days' notice in writing.
Notwithstanding other provisions of this section, a person aggrieved by the adoption of a regulation as defined in clause (5) of section one of chapter thirty A may elect alternative judicial review of such regulation through a proceeding for declaratory relief in the same manner and to the extent provided under chapter two hundred and thirty-one A.