Add JavaSynchronize2 sample