Opinion
NOTT, J.
The question presented is whether, as prevailing parties in a declaratory relief action brought against the Insurance Commissioner as conservator of an insolvent insurance company to challenge the commissioner’s designation of priority status, appellant policyholders are entitled to attorney fees and costs as provided for in their contract with the insurance company. We hold that they are and reverse the trial court’s ruling.
I
Facts and Procedural History
The judgment in favor of appellants was affirmed by Division Four of this district in
Texas Commerce Bank
v.
Garamendi
(1992) 11 Cal.App.4th 460 [14 Cal.Rptr.2d 854], review denied. The following brief statement of the facts underlying the judgment is taken from that opinion.
Executive Life Insurance Co. (ELIC) sold municipal guaranteed investment contracts (Muni-GICs) to the appellant banks as the indenture trustees for municipal entities which had issued low-income housing bonds and transmitted the proceeds to the banks for purchase of Muni-GICs. The Muni-GICs were to accumulate at a guaranteed rate and to pay accumulated interest on semiannual payment dates.
(Id.,
at p. 466.)
After it began experiencing severe financial difficulties, ELIC was placed in conservatorship. (11 Cal.App.4th at p. 467.) In the conservatorship proceedings, the Commissioner of Insurance, John Garamendi (hereinafter Commissioner Garamendi), assigned appellants “class-6” or “all other claims” priority status rather than “class-5” priority status as “policyholders.”
(Id.,
at p. 468.) Appellants challenged the designation by filing a declaratory relief action, in which they were found to be policyholders and therefore entitled to class-5 priority.
(Id.,
at p. 494.)
After the trial court entered judgment, plaintiff and appellant Texas Commerce Bank moved for an order that its attorney fees be paid as a priority one administrative expense of the estate pursuant to the terms of the Muni-GIC contract as the prevailing party in the priority litigation. The other appellants subsequently filed similar motions, and appellants were allowed to file cost bills.
The trial court ruled as follows: “From the outset, it has always appeared that the priority determination of the Muni GICs was a question of law rather
than one of fact. Only counsel for the parties asserting a priority five for the Muni GICs argued vigorously that there were substantial fact determinations requiring extensive discovery with all of the attendant costs. And those discovery-related costs together with costs of experts form the bulk of the costs sought to be recovered by the various parties who asserted the priority five status. Also, the action turned out to be predominantly, if not entirely, one for declaratory relief involving a close question of law. [tJ[] Accordingly, the Court finds that the appropriate allocation of costs is that each party bear its own costs.” The court later made clear that the ruling included attorney fees. This appeal followed.
II
Contentions
Appellants essentially raise two issues: (1) attorney fees should be awarded pursuant to the Muni-GICs, Civil Code section 1717 and Code of Civil Procedure section 1021; and (2) they are entitled to recover costs under the provisions of the Muni-GICs and Code of Civil Procedure section 1032.
HI
Discussion
A.
The Attorney Fees Provision Is Enforceable
The Muni-GICs included the following provision: “In the event any litigation is commenced to enforce any rights under this Agreement or the Funding Contract, the prevailing party shall be entitled to its reasonable attorneys’ fees and court costs.”
Appellants contend that, as prevailing parties in an action on a contract, they are entitled to attorney fees under Civil Code section 1717.
Appellants maintain that the term “on the contract” as it is used in that section has been given a broad interpretation by the courts of this state, which have held that an action seeking a declaration of rights based on an
agreement is an action on the contract. They also argue that Commissioner Garamendi, as the conservator of ELIC, stands in the shoes of the insolvent insurer and is bound by the attorney fees provision in the Muni-GICs.
Commissioner Garamendi states that when setting creditor priority status, he acts not as a private party but as a public official. Thus, he maintains, in the declaratory relief action in which appellants challenged his priority-setting determination, he did not stand in the shoes of ELIC and therefore is not subject to the attorney fees provision in the contract between ELIC and appellants.
1.
Earlier case law cited by Commissioner Garamendi.
Supporting Commissioner Garamendi’s argument are cases holding that the insolvency statutory scheme reflects the state’s interest in and power over insurance companies, and that when acting pursuant to those statutes, the insurance commissioner acts on behalf of the state. (See, e.g.,
Carpenter
v.
Pacific Mut. Life Ins. Co.
(1937) 10 Cal.2d 307, 327 [74 P.2d 761] affd. by
Neblett
v.
Carpenter
(1938) 305 U.S. 297 [83 L.Ed. 182, 59 S.Ct. 170];
Mitchell
v.
Taylor
(1935) 3 Cal.2d 217, 219 [43 P.2d 803]; and
Garris
v.
Carpenter
(1939) 33 Cal.App.2d 649, 656 [92 P.2d 688].) In particular,
Carpenter
v.
Pacific Mut. Life Ins. Co., supra,
relied on by Commissioner Garamendi, contains sweeping language supporting his position. The language appears in the portion of
Carpenter
analyzing the question of whether a trial court presiding over insolvency proceedings was required to make findings. The court concluded that findings were not required because the proceedings were “special proceedings,” evidenced by the fact that “the state is invoking its power over a corporate entity permitted by the state to engage in a business vitally affected with the public interest upon condition of continuing compliance with the requirements provided by the state. It is not a controversy between private parties but a proceeding by the state in the interest of the public.” (10 Cal.2d at p. 327.)
The question presented in
Mitchell
was whether, under the former statute (2 Deering’s Gen. Laws 1931, Act 3739), the commissioner was obligated to pay a filing fee. The Supreme Court held that the commissioner was acting on behalf of the state in his official capacity and thus, under former Political Code section 4295, was exempt from payment.
(Mitchell
v.
Taylor, supra,
3 Cal.2d 217, 218-219.)
Garris
v.
Carpenter
follows
Mitchell
(33 Cal.App.2d at p. 656.)
In our opinion, these cases considered issues very different from the one before us. Moreover,
Mitchell
interpreted the earlier act, and in a portion of the opinion not cited by Commissioner Garamendi,
Carpenter
acknowledged that under the present code the commissioner is not just a state officer but also a trustee of the benefit of the creditors of the insolvent company under Insurance Code section 1057.
(See 10 Cal.2d at p. 340.) Thus, we do not find ourselves compelled to follow Commissioner Garamendi’s authorities. We emphasize that we are in no way challenging the fact that “the business of insurance is affected with a public interest. The state has an important and vital interest in the liquidation or reorganization of such a business.”
(Carpenter
v.
Pacific Mut. Life Ins. Co., supra,
10 Cal.2d at p. 329, citing
Mitchell
v.
Taylor, supra,
3 Cal.2d 217 and
German Alliance Ins. Co.
v.
Lewis
(1914) 233 U.S. 389 [58 L.Ed. 1011, 34 S.Ct. 612].) We hold only that that policy does not resolve the attorney fees issue raised in the case before us.
2.
Earlier cases cited by appellants.
In the line of cases cited by appellants, courts faced with issues involving the relationship among trial courts, the commissioner as conservator, and the assets of the insolvent insurer took the view that the commissioner’s role is akin to that of a receiver. (See, e.g.,
Caminetti
v.
Pac. Mutual L. Ins. Co.
(1943) 22 Cal .2d 344, 354 [139 P.2d 908] cert. den.;
McConnell
v.
All-Coverage Ins. Exch.
(1964) 229 Cal.App.2d 735, 743 [40 Cal.Rptr. 587];
In re Interstate Indem. Co.
(1963) 219 Cal.App.2d 809, 815 [33 Cal.Rptr. 418];
Anderson
v.
Great Republic L. Ins. Co.
(1940) 41 Cal.App.2d 181, 188-190 [106 P.2d 75].)
Anderson,
like the
Mitchell
v.
Taylor
case cited by Commissioner Garamendi, construed the legislation that preceded article 14 of the Insurance Code. The earlier law was explicit: with respect to corporate assets, the Insurance Commissioner’s rights and duties were the equivalent of those imposed on receivers. (41 Cal.App.2d at p. 189.)
Anderson
also purported to interpret current section 1057, which provides that “the commissioner shall be deemed a trustee for the benefit of all creditors.” However, only citing to the statutory language but not analyzing it, the
Anderson
court stated that the commissioner’s duties were the same under the current law. The court held that “in either case the duties of the commissioner as conservator are in the nature of those of a receiver or trustee. Both the former act and the code expressly so provide.” (41 Cal.App.2d at p. 188.)
As noted in
Maloney
v.
Rhode Island Ins. Co.
(1953) 115 Cal.App.2d 238, 248 [251 P.2d 1027], the
Anderson
dicta are unduly broad.
Maloney
points out that originally section 1047 of article 14 provided that “ ‘in all cases arising under this article the powers and duties of the commissioner with relation to the assets and business of any insurer placed under his control shall be those exercised by and imposed upon receivers of corporations .... [Citation.]’ ” (115 Cal.App.2d at p. 248; Stats. 1935, ch. 145, p. 556.) However, according to
Maloney,
later in the session, section 1047 became section 1058, and its language was completely revised.
(115 Cal.App.2d at p. 248.) In any case, the language characterizing the commissioner’s powers and duties as those of a receiver was taken out of the bill and never became a part of article 14.
Despite
Maloney’s
clarification of the law,
Anderson’s
statement was cited by the
McConnell
court, which held that section 1057 “indicates” that the duties of the commissioner are in the nature of those of a receiver. (229 Cal.App.2d at p. 743.) The
Anderson
holding was also relied on by
Caminetti,
which preceded
Maloney,
in which the court was interpreting section 1037, subdivision (e), to refute the argument that the commissioner was
something other than a conservator or liquidator under that code section.
In re Interstate Indem. Co.
cites
Caminetti
without any discussion of
Maloney.
(219 Cal.App.2d at p. 815.)
In light of the change in the law which resulted from the enactment of article 14, we decline to follow the cases cited by appellants. Nevertheless, we conclude that the policy behind the current statutory scheme, including article 14.3, the Uniform Liquidation Act, adopted by the Legislature in 1988, subjects the estate of ELIC, through Commissioner Garamendi’s actions, to the attorney fees clause of the Muni-GICs.
3.
Current statutes.
We follow the guidelines for statutory construction set out in
Hartford Fire Ins. Co.
v.
Macri
(1992) 4 Cal.4th 318, 326 [14 Cal.Rptr.2d 813, 842 P.2d 112], though we omit the Supreme Court’s citations. In determining the Legislature’s intent, we must turn to the words of the statute itself. Where the statute is clear, the courts will not interpret away clear language in favor of an ambiguity that does not exist. The legislation should be construed to harmonize its various elements without doing violence to its language or spirit. Potentially conflicting provisions should be reconciled in order to carry out the overriding legislative purpose whenever possible. A construction which makes sense of an apparent inconsistency is to be preferred to one which renders statutory language useless or meaningless.
Under Insurance Code, division 1, part 2, chapter 1, article 14, entitled “Proceedings in Case of Insolvency and Delinquency,” the role of the commissioner appears to be twofold. Section 1059 provides: “The commissioner, in the performance of any of his duties under this article, shall be deemed to be a public officer acting in his official capacity on behalf of the State, and the provisions of Chapter 2, Division 7, Title 1 of the Government Code shall apply to him.” However, “[i]n all proceedings under this article, the commissioner shall be deemed to be a trustee for the benefit of all creditors and other persons interested in the estate of the person against whom the proceedings are pending.” (§ 1057.)
As noted earlier, section 1059 seems to have the purpose of exempting the commissioner from the payment of fees rather than defining the commissioner’s role. (See fn. 2,
ante.)
Moreover, even if we were to read the section as having a more expanded purpose, it would not support Commissioner Garamendi’s argument here. By its terms, section 1059 applies when the commissioner is engaged “in the performance of any of his duties” under article 14. These duties include actions that are apart from actions the commissioner engages in once he or she becomes the conservator of an insolvent insurer. For example, prior to instituting proceedings to place an insolvent company under conservatorship, the commissioner is required, under certain circumstances, to summarily seize the property of an apparently insolvent insurance company. (§§ 1013,1015.) The commissioner also has the duty under section 1060 to file an annual report to the Governor regarding insolvency proceedings in the state. When engaged in these actions, the commissioner is not acting as the conservator of any particular insolvent insured. Therefore, the commissioner would be acting solely under the duty of section 1059, that is, on behalf of the state, and the duty as trustee under section 1057 would not arise.
The language of section 1057, on the other hand, is more limited than that of section 1059. By its provisions, the commissioner is deemed to be a trustee for the creditors of the estate of the insurer against whom the proceedings are pending.
(Carpenter
v.
Pacific Mut. Life Ins. Co., supra,
10 Cal.2d 307, 340.) Section 1057 applies in “all proceedings” under article 14. Proceedings under article 14 begin when the commissioner files a verified application for conservatorship in the superior court. (§ 1011; see § 1015.) Thus, the trustee duties arising under section 1057 become applicable only when the commissioner becomes a conservator under section 1011.
(Muth
v.
Educators Security Ins. Co.
(1981) 114 Cal.App.3d 749, 758 [170 Cal.Rptr. 849].)
Unfortunately, the Legislature did not define the term “trustee” for purposes of article 14. Probate Code section 16002, subdivision (a) imposes on a trustee a duty of loyalty which has been interpreted to mean that the trustee must administer the trust solely in the interest of the beneficiary.
(Estate of Gump
(1991) 1 Cal.App.4th 582, 596, and fn. 15 [2 Cal.Rptr.2d 269], citing Rest.2d Trusts, § 170, subd. (1), review den.) That, however, does not bring us any closer to determining whether Commissioner Garamendi stands in the shoes of FLIC. Our cursory review of the law of trusts did not uncover any rules that would assist us in this case. Nor do we think that the Legislature intended to incorporate the law of trusts into the insolvency statutes. Thus, we must look beyond section 1057 to resolve the question before us.
Pursuant to section 1011, the filing of an application for conservatorship vests in the commissioner title to all the assets of the insolvent insurer.
Section 1064.2, subdivision (b) goes further by vesting in the commissioner the contracts of the insurer. Under section 1037, subdivision (a), the commissioner as liquidator or conservator has the authority to conduct the business and affairs of the insolvent, and section 1064.2, subdivision (c) requires the commissioner to “immediately proceed to conduct the business of the insurer. . .
In
Prudential Reinsurance Co.
v.
Superior Court
(1992) 3 Cal.4th 1118 [14 Cal.Rptr.2d 749, 842 P.2d 48], the Supreme Court interpreted section 1031, which concerns set-offs between the insolvent and its creditors. The
Prudential
"court stated:”It is well settled that once insolvency has occurred and a liquidator has been appointed to assume all the rights of the insolvent insurer, he does so subject to
all
legal defenses and setoffs to which the insolvent was subject at the time of insolvency and liquidation orders. (§ 1031.) In other words, the liquidator steps into the shoes of the insolvent insurer, taking the relevant claims and defenses as he finds them.” (3 Cal.4th at pp. 1136-1137, italics in the original.) Although Commissioner Garamendi was a conservator and not a liquidator, he was appointed to assume all the rights of the insolvent insurer under the statutes cited above. We therefore find the language of
Prudential
instructive on whether Commissioner Garamendi stands in the shoes of ELIC in this case. (See also
Dardar
v.
Insurance Guar. Ass’n
(La.Ct.App. 1990) 556 So.2d 272, 274 [rehabilitator, with authority to conduct business of insolvent insurer, steps into the shoes of the insurer and is bound by same constraints as is the insurer in the normal course of business].)
Based on the foregoing, we hold that under the broadest reading of the current statutory scheme the commissioner is a public official acting on behalf of the state when dealing with insolvent insurers in general, but once appointed conservator of a particular insolvent insurer, the commissioner steps into the shoes of that insurer.
In this case, Commissioner Garamendi has presented no persuasive argument that would justify elevating his duty as a state official such that he would not be held to stand in ELIC’s shoes. He has not identified the state’s interest in assigning appellants class-6 priority designation. He argues that he could not have made the priority decision as ELIC’s successor-in-interest because the ELIC estate had no interest in the priority determination, but in fact only the ELIC estate and the other creditors could have such an interest. Moreover, when Commissioner Garamendi categorized appellants as creditors other than policyholders, he did more than simply apply section 1033. He first had to interpret the Muni-GICs and his interpretation in effect denied appellants the benefit of the agreement they had with ELIC. He
makes no attempt to explain how that denial furthers the interests of the state, which he claims he was representing. We hold that Commissioner Garamendi was standing in the shoes of ELIC when he determined that appellants were not policyholders and when he defended that position in the declaratory relief action.
Our conclusion is bolstered by equitable considerations in that an overview of the particular facts of this case dictates that appellants should receive attorney fees. Commissioner Garamendi’s erroneous interpretation of the Muni-GICs compelled appellants to sue to enforce their rights as policyholders. Even though he was the losing party in that litigation, Commissioner Garamendi’s attorney fees were paid out of the ELIC estate pursuant to statute. (§ 1064.2, subd. (c).) We view it as unfair to require appellants to absorb their attorney fees where the estate is obligated to pay the fees of the losing side which took an untenable position and thereby compelled these policyholders to sue to recover their rights.
4.
The application of Civil Code section 1717.
Having concluded that Commissioner Garamendi stands in the shoes of ELIC for purposes of the priority determination and the litigation that followed therefrom, we turn to appellants’ contentions regarding attorney fees under Civil Code section 1717. We agree that they are entitled to attorney fees under that statute and the Muni-GIC attorney fees provision. Actions for a declaration of rights based upon an agreement are “on the contract” within the meaning of Civil Code section 1717.
(Las Palmas Associates
v.
Las Palmas Center Associates
(1991) 235 Cal.App.3d 1220, 1259 [1 Cal.Rptr.2d 301], review den.)
Commissioner Garamendi argues that the action was not on the contract because the Muni-GICs were merely part of the backdrop of the
case. He maintains that the action was on section 1033, the priority-setting statute. However, it is clear from the opinion of the appellate court reviewing the declaratory relief judgment that the issues in the case had nothing to do with the interpretation of section 1033 and everything to do with the interpretation of the Muni-GICs. (See
Texas Commerce Bank
v.
Garamendi, supra,
11 Cal.App.4th 460, 465.)
This conclusion is also supported by the pleadings.
(Lerner v. Ward
(1993) 13 Cal.App.4th 155, 158 [16 Cal.Rptr.2d 486] [in resolving attorney fees motion, the trial court should consider the theories asserted, among other things].) In his answer, Commissioner Garamendi stated that the Muni-GICs were not authorized under California law at the time they were issued and thus were not policies of life insurance as defined in section 101; and that after they were issued, a statute was enacted declaring that such contracts are not insurance policies under sections 100 and 101. For these reasons, he asserted, the appellants were not entitled to class-5 status under section 1033. The answer focused not on section 1033 but on the interpretation of the contracts. Therefore, we reject Commissioner Garamendi’s argument that the action was not on the contract.
Without question, appellants were the prevailing parties in the declaratory relief action within the meaning of Civil Code section 1717. Under subdivision (b)(1) of that statute, excepting circumstances not at issue here, “the party prevailing on the contract shall be the party who recovered a greater relief in the action on the contract.” Appellants won in the trial court and on appeal, as both courts concluded that the Muni-GICs were insurance policies. (See
Texas Commerce Bank
v.
Garamendi, supra,
11 Cal.App.4th at pp. 465, 468.) We therefore hold that the trial court erred in failing to award appellants attorney fees. Although the trial court has considerable discretion in fixing the amount of attorney fees, the court may not completely deny them to the prevailing party.
(Deane Gardenhome Assn.
v.
Denktas
(1993) 13 Cal.App.4th 1394, 1398 [16 Cal.Rptr.2d 816];
Smith
v.
Krueger
(1983) 150 Cal.App.3d 752, 757 [198 Cal.Rptr. 174].)
In light of our holding, we need not discuss appellants’ alternative argument that they are entitled to attorney fees under Code of Civil Procedure section 1021.
B.
Appellants Are Entitled to Costs
As to appellants’ contention that they are entitled to costs by statute, we do not agree. Code of Civil Procedure section 1032, subdivision (b) states: “Except as otherwise expressly provided by statute, a prevailing party is entitled as a matter of right to recover costs in any action or proceeding.” Subdivision (a)(4) of the statute provides, in pertinent part: “ ‘Prevailing party’ includes the party with a net monetary recovery .... When any party recovers other than monetary relief and in situations other than as specified, the ‘prevailing party’ shall be as determined by the court, and under those circumstances, the court, in its discretion, may allow costs or not and, if allowed may apportion costs between the parties on the same or adverse sides pursuant to rules adopted under Section 1034.”
Appellants contend first that they are the prevailing parties and under subdivision (b) they are entitled to an award of costs. Appellants rely on
California Common Cause
v.
Duffy
(1987) 200 Cal.App.3d 730, 752 [246 Cal.Rptr. 285], in which an award of attorney fees to the prevailing plaintiffs in a declaratory relief action was affirmed under subdivision (b). However, the opinion failed to consider that the mandate of cost recovery by the prevailing party under subdivision (b) is limited by the phrase “Except as otherwise expressly provided by statute”; and that subdivision (a) expressly states a limitation. We therefore decline to follow the
Duffy
case.
Appellants next argue that even under Code of Civil Procedure section 1032, subdivision (a)(4), they were the prevailing parties and the trial court abused its discretion in not awarding costs to them.
Where the prevailing party is one not specified, Code of Civil Procedure section 1032, subdivision (a)(4) permits the trial court to determine the prevailing party and then allow costs or not, or to apportion costs, in its
discretion.
The statute requires the trial court to determine which party is prevailing and then exercise its discretion in awarding costs. (See 7 Witkin, Cal. Procedure (3d ed. 1994 Supp.) Judgment, § 88, p. 133.) This portion of the statute does not require the trial court to award costs to the prevailing party “as a matter of right.” (Code Civ. Proc., § 1032, subd. (b).) Thus, the statute permits the ruling the trial court made in this case, ordering each side to pay its own costs, even though appellants were without question the prevailing parties.
(Perko’s Enterprises, Inc.
v.
RRNS Enterprises
(1992) 4 Cal.App.4th 238, 244 [5 Cal.Rptr.2d 470] [statutory language that is clear and unambiguous does not need judicial construction], citing
People
v.
Woodhead
(1987) 43 Cal.3d 1002, 1007 [239 Cal.Rptr. 656, 741 P.2d 154].) In light of the statutory language, we cannot say that the trial court’s order was an abuse of discretion.
Appellants argue, in effect, that the opening phrase of Code of Civil Procedure section 1032, subdivision (a)(4), “ ‘Prevailing party’ includes the party with a net monetary recovery,” does not exclude prevailing parties, such as themselves, who did not seek monetary recovery. Appellants cite in support of that position
Pirkig
v.
Dennis
(1989) 215 Cal.App.3d 1560 [264 Cal.Rptr. 494], but the conclusion of the court in that case is not inconsistent with the conclusion reached here.
Pirkig
analyzed subdivision (a)(4) and held that “[t]he word ‘includes’ is an open-ended term which is expansive in scope and fails to limit the definition of the prevailing party to the enumerated instances.” (215 Cal.App.3d at p. 1565.) The court then went on to consider the additional language in the subdivision, which, the court stated, permits that “parties who do not recover monetary relief or ones who do not come within the enumerated examples, may ... be declared prevailing parties and awarded costs in the discretion of the court.” (215 Cal.App.3d at p. 1566.) On the basis of the latter language, the court upheld the trial court’s determination that the plaintiffs were entitled to costs even though the court granted the defendant’s motion for judgment.
(Ibid.) Pirkig
recognizes the trial court’s discretion in awarding costs under subdivision (a).
However, we agree with appellants’ argument that they are entitled to costs under the Muni-GICs. As appellants are the prevailing parties in an action on the contract which provides for the award of “court costs,” they are entitled to reasonable costs. (Civ. Code, § 1717.) As with the attorney fees, the trial court has discretion to fix the amount of costs, but it may not completely deny them to the prevailing party.
Disposition
The trial court’s order is reversed. Appellants are awarded costs on appeal. Boren, P. J., and Fukuto, J., concurred.
Petitions for a rehearing were denied October 28, 1994, and the opinion was modified to read as printed above. The petition of defendants and respondents for review by the Supreme Court was denied January 25, 1995. Kennard, J„ was of the opinion that the petition should be granted.