(a) An electric company may sell or exchange excess power and energy produced or owned by it not required by any of the contracting municipalities for such consideration and for such period and upon such terms and conditions as it may determine to any other person or public agency.
(b) Notwithstanding any other provision of this chapter or any other statute, nothing shall prohibit a company from undertaking any project in conjunction with or owning any project jointly with any person or public agency.