set replacement for jruby