Added support for jruby.