Made compatible for jRuby in 1.9.3 mode