simplify jobject callback calling from native code