Add utility JNI calls

Signed-off-by: Umair Khan <omerjerk@gmail.com>