At any time after a controversy has arisen between the commissioner of commerce and a savings bank with respect to a question of law or rule or with respect to a question involving immeasurable or irreparable damage to the savings bank, and before an administrative or judicial hearing, the savings bank or the commissioner may apply to a court of competent jurisdiction in the county in which the home office of the savings bank is located for a declaratory judgment as to the question.