An alleged burglar of a dumpling restaurant called a magistrate a "racist motherf---er" and has been advised to apologise or face further court action.
Douglas James Weldon let out several expletives when his bid for freedom was denied in the ACT Magistrates Court on Tuesday.
Weldon, 44, got to his feet at the bar table and told magistrate Robert Cook "this system is so messed up".
While being escorted away, Weldon said "you shouldn't even be a f---ing judge, you racist motherf---er".
Yelling could then be heard from the custodial area when the alleged burglar left the courtroom.
Mr Cook then told Weldon's Legal Aid duty lawyer, Lesley Jayasuriya, that he would be pushing for contempt of court charges but would accept an apology.
Weldon is yet to enter pleas to a raft of charges including seven counts of fraud, and others of burglary and theft.
Police documents state that on September 21 Weldon, wearing a white-and-black balaclava, snuck through the service entrance of CBD Dumpling House.
He allegedly crawled along the floor to the service counter to avoid detection, before getting to his feet and shuffling to the cash register.
Weldon is said to have stolen about $2000 from underneath the register and placed it in a blue tote bag before fleeing.
The court document states the alleged burglary was captured on CCTV cameras.
He is then accused of using a debit card belonging to the restaurant to purchase bourbon, cigarettes, and take-away food.
Weldon allegedly also bought a silver ring, neck chain, clothes and a Las Vegas Raiders cap, while also stealing a pair of sneakers.
The total amount of fraudulent purchases is said to come to about $500.
On Tuesday, Weldon's duty lawyer was required to prove he had special or exceptional circumstances favouring the granting of bail.
Mr Jayasuriya said the man had support for his alcohol and drug rehabilitation in the community, and had started a business course at the Canberra Institute of Technology.
A prosecutor argued Weldon had a "demonstrated cavalier attitude" to court orders.
Mr Cook found Weldon's circumstances did not reach the required threshold and denied bail.
The 44-year-old is set to face court again later this month.