Memeory leak fix: calling now JNI DeleteLocalRef() for all locally retrieved Java objects