Updated handshaking kabuki between Erlang and Java