Change for JRuby compatibility