jni: registration callback implemented