Improve interactions between JRuby and Java components