SAN FRANCISCO (KPIX) — The HR director for San Francisco courts is looking into what happened inside a courtroom on Thursday during a party involving a fake female police officer, a whip and handcuffs.

Sources tell San Francisco Chronicle and KPIX 5’s Phil Matier that a woman showed up in superior court judge Richard Kramer’s courtroom on Thursday to deliver a singing telegram. She was dressed in a skimpy cop outfit, complete with a Confederate flag patch.

READ MORE: Santa Clara Shoe Store Ransacked in Late Night Smash-and-Grab Robbery

Some court staffers were made uncomfortable by the event and reported it.

READ MORE: Niles Canyon Road Between Fremont, Sunol To Be Closed Over Weekend For Construction

Acting presiding judge Teri Jackson — who is the first African-American woman to serve in that role — was not happy.

MORE NEWS: Mayor Schaaf Pushes to Reverse Oakland’s Police Cuts During Spike In Violence

On Friday, Judge Jackson sent an angry e-mail to the rest of the judges, reminding them to behave.