Update jni code with static object instance