. . "(e) The court may award any person, partnership, corporation, association, organization or other legal entity which maintains an action under section 22a-16 or intervenes as a party in an action for judicial review under section 22a-19, and obtains declaratory or equitable relief against the defendant, its costs, including reasonable costs for witnesses, and a reasonable attorney's fee." . . . .