Rails to Java via REST