It's crunch time for the largest municipal bankruptcy in U.S. history.

On Tuesday, Detroit enters what could be the final leg in its lengthy and strained journey through bankruptcy.

At the end of the hearings, which are expected to last about six weeks, Judge Steven Rhodes will decide whether to approve the city's plan to emerge from bankruptcy or nix it.

"Tensions are obviously running high up there because there's a lot at stake, and the legal issues touch on broad policy issues that people feel strongly about," said Patrick Darby, who was the lead counsel to Jefferson County, Ala., when it went through Chapter 9.

Detroit filed for Chapter 9 in July 2013, and the process has been contentious throughout, with retirees picketing outside the courthouse — waving images of Michigan Gov. Rick Snyder with devil's horns — and creditors filing hundreds of motions protesting the bankruptcy.

But if the last few days are any indication, this final step could be even more confrontational inside and outside the courtroom. "FIGHT BACK!" said one community group's recent email urging residents to protest at the courthouse Tuesday.

Rhodes will consider whether the plan is fair and equitable, whether it unfairly discriminates against one group of creditors, and whether it's feasible.

It's the "fair and equitable" part of bankruptcy law that is causing the most tension in the Motor City.

One of the thorniest matters: the so-called Grand Bargain, a deal that raised money from foundations and the state to soften the pension cuts to current employees and retirees. It also would transfer the collection from the Detroit Institute of Arts to a public trust.

Under the plan, which retirees and employees voted on and approved, non-uniformed retirees will see a 4.5% cut to their pensions and lose cost-of-living adjustments; uniformed retirees will lose their cost-of-living adjustments.

On the other hand, other creditors, such as bond insurer Syncora, will lose much more than 4.5% of what they were expecting. They'll get pennies on the dollar.

Syncora has been the most vocal critic of the bankruptcy proceedings, and filed an objection in August accusing the mediators who put the Grand Bargain together of colluding against financial institutions and favoring retirees.

The city and Syncora have traded barbs, at one point prompting Rhodes to ask the two sides to stop using war analogies to describe each other's litigation strategy.

In a filing Thursday, he called Syncora's latest accusations about the mediators "scandalous and defamatory," and threatened sanctions against Syncora's lawyers.

Meanwhile, another dissatisfied creditor, Financial Guaranty Insurance Co., solicited bids for the Detroit Institute of Arts collection, suspecting that it was worth more than the city thought. It found a company, Art Capital, that was willing to lend $3 billion to the city with the art as collateral. The current plan, according to a filing by FGIC's attorneys, is giving up the rights to the artwork for $455 million.

Going with the Art Capital plan instead of the "inferior" Grand Bargain, FGIC said in a statement, would significantly increase the amount creditors could receive. It also would keep the art collection in the city.

"It is an extremely attractive option for all stakeholders and a win for all sides," FGIC said.

But those headaches aside, Rhodes must consider a fundamental question: Can Detroit's plan work — especially in a city that is still losing population, where streetlights don't work and police responses can take hours?

Rhodes hired an external turnaround specialist, Martha Kopacz, to assess the city's plan. In a report filed in July, she said it left her with many reservations.

"Even after many years of practice with dysfunctional, insolvent, operationally troubled enterprises, I was confused by the city's projections," she wrote.