cleaned up ruby to java interface