Avoid needless convertion from JavaToRuby