JOGL1/JOGL2 good way to dump state?

I was wondering if there are any helper functions that will dump opengl state. Or can point me to some source. I’ll write my own get*'s if I have to. Be nice to copy and paste!

Monty