JRuby library functions