Avoid calling ruby code from java