
28 Cal.App.4th 1234 (1994)
34 Cal. Rptr.2d 155
TEXAS COMMERCE BANK-EL PASO, N.A. et al., Plaintiffs and Appellants,
v.
JOHN GARAMENDI, as Insurance Commissioner, etc., et al., Defendants and Respondents; OFFICIAL ALLOCATED ANNUITIES COMMITTEE et al., Interveners and Respondents.
Docket No. B071545.
Court of Appeals of California, Second District, Division Two.
September 28, 1994.
*1237 COUNSEL
Thelen, Marrin, Johnson & Bridges, Paul R. Haerle, Gary L. Fontana, Christine C. Franklin, Pillsbury, Madison & Sutro, Philip S. Warden, John M. Grenfell, Kevin M. Fong, Mark Schallert, Robert L. Wallan, Adams, Duque & Hazeltine, Dale A. Welke, Catherine Hunt Ruddy and Terry L. Tron for Plaintiffs and Appellants.
Daniel E. Lungren, Attorney General, Edmond B. Mamer, Deputy Attorney General, Howard, Rice, Nemerovski, Canady, Robertson & Falk, Jerome B. Falk, Jr., Steven L. Mayer, Peter J. Busch, Laurence F. Pulgram, Rubinstein & Perry, Karl L. Rubinstein and Dana Carli Brooks for Defendants and Respondents.
Brobeck, Phleger & Harrison, G. Larry Engel, Kent M. Roger, David M. Higgins, Robert L. Hagle, Pachulski, Stang, Ziehl & Young, Larry W. Gabriel and Iain A.W. Nasatir for Interveners and Respondents.
*1238 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 *1239 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. [¶] 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.

III

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."
(1a) Appellants contend that, as prevailing parties in an action on a contract, they are entitled to attorney fees under Civil Code section 1717.[1] 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 *1240 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.)[2]Garris v. Carpenter follows Mitchell (33 Cal. App.2d at p. 656.)
*1241 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.[3] (See 10 Cal.2d at p. 340.) Thus, we do not find ourselves compelled to follow Commissioner Garamendi's authorities. (2) 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].)
*1242 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.)[4]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.[5] (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 *1243 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.[6]

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.
(3a) 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.)
*1244 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 ELIC. 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. *1245 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.) (1b) 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].)
(3b) 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.
(1c) 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 *1246 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.[7]

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.)
(4) Commissioner Garamendi argues that the action was not on the contract because the Muni-GICs were merely part of the backdrop of the *1247 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.)[8] 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.
(1d) 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. (5) 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].)
*1248 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.[9]

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."
(6) 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 *1249 discretion.[10] 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.


*1250 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.
NOTES
[1]  Civil Code section 1717 provides in pertinent part: "In any action on a contract, where the contract specifically provides that attorney's fees and costs, which are incurred to enforce that contract, shall be awarded either to one of the parties or to the prevailing party, then the party who is determined to be the party prevailing on the contract, whether he or she is the party specified in the contract or not, shall be entitled to reasonable attorney's fees in addition to other costs."
[2]  At present, Government Code title 1, division 7, chapter 2, that is, Government Code section 6100 et seq., entitled "Fees," is made applicable to the commissioner by Insurance Code section 1059. Government Code section 6100 states: "Officers of the state... shall not perform any official services unless upon the payment of the fees prescribed by law for the performance of the services, except as provided in this chapter." Under Government Code section 6103, a "public officer ... acting in his official capacity on behalf of the state" does not pay fees "for the filing of any document or paper, for the performance of any official service, or for the filing of any stipulation or agreement which may constitute an appearance in any court...." (Gov. Code, § 6103.) Thus, Insurance Code section 1059 incorporates the holding of Mitchell v. Taylor and exempts the commissioner from having to pay fees in a variety of situations. It appears that the legislative purpose in describing the commissioner as a "public officer acting in his official capacity on behalf of the State" was not to define the role so much as to conform to the language of Government Code section 6103.

The statutory history supports this view. The fee exemption first appeared in former Political Code section 4295. (Stats. 1915, ch. 422, § 1, p. 694 [any public officer acting in official capacity on behalf of the state not required to pay any fee for filing any document or paper or for performance of any official service].) Government Code section 6103 was enacted in 1943. (Stats. 1943, ch. 134, § 6103, p. 990.) In 1957, section 1059 was amended to change the statutory reference from Political Code section 4295 to the present reference to Government Code section 6103.
[3]  See discussion in part III, A., 3., infra.

All subsequent statutory references are to the Insurance Code unless otherwise stated.
[4]  Section 10 of the previous legislation, known as "`An Act to Provide for Proceedings against and Liquidation of Delinquent Insurance Corporations and Associations'" and quoted in Anderson, stated in full: "`In all cases arising under the provisions of this act where not otherwise provided the powers and duties of the Insurance Commissioner with relation to the property and assets and business of any corporation placed under his control shall be those heretofore exercised by and imposed on receivers of corporations within this state.'" (41 Cal. App.2d at pp. 187, 189.)
[5]  So revised, in fact, that the duties of the commissioner are no longer the subject of section 1058, which now reads, "In any proceeding pending under the provisions of this article, the court in which such proceeding is pending shall have jurisdiction to hear and determine, in such proceeding, all actions or proceedings then pending or thereafter instituted by or against the person affected by a proceeding under this article."
[6]  The Uniform Act defines itself as "An Act concerning the liquidation, rehabilitation, reorganization, or conservation of insurers doing business in more than one state and to make uniform the law with reference thereto." (13 U. Laws Ann. (Master ed. 1986) Uniform Insurers Liquidation Act, p. 328.) The California enactment varies from the official text in ways not pertinent to this discussion. (See 13 U. Laws Ann. (Master ed., 1994 cum. ann. pocket pt.) Uniform Insurers Liquidation Act, p. 71, Notes following § 1.) To the extent that its provisions conflict with article 14, article 14.3 controls. (Id., at subd. (b).)
[7]  We note that Civil Code section 1717 "was enacted to establish mutuality of remedy where contractual provision makes recovery of attorney's fees available for only one party." (Reynolds Metals Co. v. Alperson (1979) 25 Cal.3d 124, 128 [158 Cal. Rptr. 1, 599 P.2d 83].) Though the contract provision at issue in this case was not one-sided, section 1064.2, subdivision (c) is, and we find it fitting that the Civil Code section 1717 remedy can be of assistance in reaching an equitable result in this case.

Moreover, the litigation in the conservatorship of ELIC has not abated. The second superior court-approved rehabilitation plan has been challenged. Some of the parties who contested the plan settled with Commissioner Garamendi. According to a letter brief submitted to this court by Commissioner Garamendi, the settlement amounts included the parties' attorney fees. While it is true, as Commissioner Garamendi argues, that the settlements are based on a different aspect of the litigation, we find it ironic that Commissioner Garamendi agreed to the payment of the attorney fees of those parties who opposed appellants' priority while he vigorously opposes payment to the prevailing appellants.
[8]  "The primary issues raised are as follows: (1) whether Muni-GICs were insurance annuities under Insurance Code section 101 [fn. omitted] when they were issued in 1986; (2) whether enactment in 1988 of section 10541 retrospectively alters the status and claim priority of the 1986 Muni-GICs in the ELIC liquidation proceedings; (3) whether the liquidation claim priority of the subject Muni-GICs is determined as of their status when issued in 1986 or, rather, as of April 11, 1991, when the order for conservation was entered; (4) whether the Muni-GICs sold in states other than California are exempt from any retroactive effect of section 10541 because their status as insurance annuities is controlled by the laws of the states where sold; (5) whether Muni-GICs are materially distinguishable from `Pension Fund Guaranteed Investment Contracts' Pension-GICs), which the Insurance Commissioner has given `policyholder' liquidation status; (6) whether, assuming the 1986 Muni-GICs were not insurance annuities when issued or are not such for purposes of the ELIC liquidation claim priorities, the Muni-GIC claims are entitled to class-5 priority as claims for `return of unearned premium.'" (11 Cal. App.4th at p. 465.)
[9]  "Except as attorney's fees are specifically provided for by statute, the measure and mode of compensation of attorneys and counselors at law is left to the agreement, express or implied, of the parties...." (Code Civ. Proc., § 1021.)
[10]  In addition to the party with the net monetary recovery, the statute specifically refers to the following as prevailing parties: "... a defendant in whose favor a dismissal is entered, a defendant where neither plaintiff nor defendant obtains any relief, and a defendant as against those plaintiffs who do not recover any relief against that defendant." (Code Civ. Proc., § 1032, subd. (a)(4).)
