Add HPM2.0 Sample Code in Java.