rem: obj = ( *env )->AllocObject( env , ( *env )->FindClass( env , "CPtr" ) );
add: tempClass = ( *env )->FindClass( env , "luajava/CPtr" ); obj = ( *env )->AllocObject( env , tempClass );
context: JNIEXPORT jobject JNICALL Java_luajava_LuaState__1newthread  (JNIEnv * env , jobject jobj , jobject cptr){   lua_State * L = getStateFromCPtr( env , cptr );   lua_State * newThread;      jobject obj;       newThread = lua_newthread( L );   obj = ( *env )->AllocObject( env , ( *env )->FindClass( env , "CPtr" ) );   if ( obj )   {      ( *env )->SetLongField( env , obj , ( *env )->GetFieldID( env , ( *env )->FindClass( env , "CPtr" ) ,                                                        "peer" , "J" ), ( jlong ) L );   }   return obj;}