JRuby compatability