Now obviously this is a ridiculous situation and the officer was on a powertrip, but you did break the law and technically she was within her privileges to bring you down to holding. Still, the fact that you encountered pretty much the worst scenario possible and were only held up for a few hours from start to finish is, to me, a sign that the system is working pretty damn well.