Finally a combination of unbroken things that make it work on JRuby.