Attempt to accommodate JRuby