add Jni method