Update to JVM SDK 1.0.0-M5.
Update code with new SDK version changes.