CHICAGO (STMW) — A Chicago man faces 30 days in jail after swearing at a Cook County judge during his bond hearing Sunday afternoon.

Alex Bailey, 31, of the 300 block of West Evergreen Street, had just been ordered held in lieu of $50,000 bail in a retail theft case when he began swearing at Cook County Judge Peggy Chiampas.

READ MORE: Suspect Shot, Wounded By Police On Lower Wacker Drive; 2 Others Taken Into Custody After Being Found In Vehicle Taken In Carjacking

He was being escorted from the courtroom when he started shouting and called Chiampas a “b – – – -.”

Chiampas said she could charge him with criminal contempt of court and sentence him up to six months in jail. Bailey returned to the courtroom about an hour later to apologize to the judge.

READ MORE: Chicago Weather: Brief Warm Up Is On The Way, Snow Showers Return

“I feel very embarrassed,” he said. “Sorry to the people and their families for being so disrespectful.”

Chiampas thanked Bailey and sentenced him to 30 days in the Cook County jail.

Bailey was initially charged with stealing $366.97 in alcohol from a Jewel at 1340 W. Canal St., according to court documents.

MORE NEWS: View Live Radar

(Source: Sun-Times Media Wire © Chicago Sun-Times 2014. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)