Added runtime check whether we are using jruby