Adjusted java_send methods.