A bitter lawsuit that charges favoritism and illegal lobbying provides a glimpse into the behind-the-scenes communications and inner workings of government at the state Capitol.

The pitched battle between two high-profile Hartford Democrats has been playing out quietly for the past 18 months in a Freedom of Information battle that has made public scores of emails sent and received by former House Speaker Thomas Ritter, who remains one of the most influential behind-the-scenes players in Hartford after finishing his tenure as speaker.

The dispute spilled into public view this week in a civil lawsuit filed against the Connecticut Resources Recovery Authority by the consulting firm of Hartford Democratic strategist Matthew J. Hennessy, the former chief of staff to then-Hartford Mayor Eddie Perez.

In 2011, Hennessy's firm sought to win a three-year contract worth more than $250,000 with CRRA, the powerful regional garbage agency. When Hennessy's company failed to get the contract, he started asking why he lost in a public bidding process in which he was never interviewed. When he received no answers, he started seeking information through the FOI process, leading to disclosure of the emails.

More than 1,000 other emails were withheld under attorney-client privilege for Ritter and others during the period from 2006 to 2012.

The lawsuit charges, in strong language, that the bidding process was "a sham.'' It also alleges that CRRA had "predetermined'' that the law and lobbying firm where Ritter works, Brown Rudnick, would get the contract. Ritter's firm already held the contract since 2006, and Hennessy was the only other bidder when it was time for renewal. A dispute arose over exactly when the contract expired, and the suit says the contract was improperly extended.

The suit also says that the awarding of the contract "was the result of favoritism, fraud, and/or corruption'' and charges that Ritter's firm never disclosed an hourly fee that was required in the bid specifications.

The CRRA is not permitted under the law to conduct any lobbying as a quasi-public agency. But the lawsuit says Brown Rudnick had, in fact, lobbied Gov. M. Jodi Rell's budget office for money "for CRRA's closure of the Hartford landfill'' starting in 2006 and later helped "secure a veto from Governor Rell on legislation that would have prevented CRRA from placing a landfill in the town of Franklin'' in June 2009.

CRRA Denies Allegations

In a statement to The Courant, the CRRA said: "Mr. Hennessy's allegations are thoroughly lacking in merit. We are referring this matter to our lawyers, who will vigorously defend CRRA.''

The statement pointed out that Hennessy's company, Tremont Public Advisors, "is represented by CRRA's former law firm, Murtha Cullina, from whom CRRA recovered millions of dollars stemming from the law firm's advice to CRRA on the disastrous Enron matter.''

The trash authority was referring to Murtha Cullina's payment of $16.25 million in 2007 for its role as legal counsel in a failed deal with Enron Corp., which later collapsed under allegations of financial fraud. Murtha Cullina had been the legal counsel for CRRA since it was created in 1973. Then-Attorney General Richard Blumenthal said that Murtha never saw the Enron loan's "fatal flaws'' and ended up "waving its client over the cliff, instead of warning it away.''

The current lawsuit, however, does not involve Enron and comes more than a decade after the unsecured loan was made to the Houston-based company in 2000.

Ritter, who declined comment on the lawsuit, has repeatedly stated in the past that he has never lobbied for CRRA. In the emails, too, he says the work that he does is not lobbying.

Ritter on Thursday referred questions to a Massachusetts public relations firm, which released a statement that said the lawsuit is "meritless'' and "contains false allegations'' against both CRRA and Brown Rudnick. "At all times, Brown Rudnick and its lawyers have acted strictly in accordance with all prevailing legal, ethical and regulatory requirements,'' the statement said.

Hennessy, though, has a different view.

"The complaint outlines CRRA's multi-year pattern of violating Connecticut statutes and the authority's own procurement policies to eliminate competition and steer contracts required to be competitively bid to a pre-determined bidder,'' Hennessy said in an email.

"Specifically, the complaint details how CRRA engaged in sham bidding processes to award contracts for 'municipal government liaison services' to the law firm of the minority leader of the state House of Representatives, who appoints members of the CRRA board of directors. As a result, lobbyists from the firm advocated with state officials on behalf of CRRA, even though CRRA is banned by statute from retaining contract state lobbyists.''

House Republican leader Larry Cafero, the longtime minority leader, says he is a "contract-income partner'' at Brown Rudnick, as opposed to an equity partner who shares in the firm's profits. Cafero is authorized to choose two members of the CRRA board, which ultimately has authority over the extension of any contracts with Brown Rudnick.

"I'm tired of saying it, but I have absolutely nothing to do with any matter of any client that has dealings with the state,'' said Cafero, referring to questions raised in the past about his activities at Brown Rudnick. "From what I understand, the implication of this lawsuit is I'm in cahoots with members of my firm to better the client, that somehow I'm financially being rewarded by it. That's what it's implying.