Working with jruby 1.7.0 onwards