Workaround for JRuby