add static method for jni