Added support for jruby 2.1 mode