Initial conversion to jruby