A high-strung hipster, “stressed” by the indignity of having to wait for the arraignment of his Occupy Wall Street buddies, flipped out in Brooklyn Criminal Court today and wound up in handcuffs himself.

After the last of his pals was arraigned before Judge Charles Troia, Cosmo Bjorkenhiem erupted.

”This court is obscene!” he bellowed as he flung open the courtroom door and stomped out.

”This is contempt and I won’t allow it,” said Troia as court officers cuffed Bjorkenheim in the hallway over the objections of his protest-happy posse.

Troia held a summary criminal contempt hearing and Bjorkenheim, despite being twice offered the opportunity to address Troia directly, apologized through his lawyer, John Gutman.

”I guess it was the stress of the moment,” Gutman said, adding that Bjorkenheim apologized “most strenuously” for his “intemperate remark.”

Troia replied that he had more than 300 defendants awaiting arraignment and that the disruption further delayed their appearances.

”We’re not here for any political purpose,” the judge intoned.

He found that Bjorkenheim had committed contempt and fined the doofus $100 for attempting to “destroy and undermine the dignity and authority of this court.”

Bjorkenheim had been cooling his heels waiting for the appearances of four friends who were collared after they trashed a new condo in Williamsburg.

Emma Engle, Matthew Whitley, Zachary Dempster and Robert Nilon were freed on bail for allegedly inciting a riot late Saturday night after they were ejected from the luxury high-rise on North Eighth Street in the hipster holy ground.

Gutman said he believed Bjorkenheim’s apology was “heartfelt” and that he “did not intend to disrespect the court.

Troia said Bjorkenheim’s outburst was “immature and without any basis” and gave him until March 19 to pay the fine.