Try to get this working for Jruby