Did you mean to remove this function? seems unfortunate to persist the `JNI hacks` commit.