Based on ideas in http://exceptionalruby.com/ and the nestegg gem which does not support JRuby.
Darrick Wiebe
无