- add java serialize sample codes.