Section 2. The provisions of this chapter shall apply to all domestic insurers, and any other insurer doing business in the commonwealth whose state of domicile has requested in writing for the commissioner to apply the provisions of this chapter as regards such insurer.