JNIEnvProvider *JNIEnvProvider::s_self = 0;  JNIEnv *PerThreadAutomagicJNIEnvProvider::env() { JNIEnv *env=Get(); if (env) return env; JavaInterface::CheckAttachCurrentThread(); return Get(); }  ShutdownManager *ShutdownManager::s_self = 0;  void ShutdownManager::RegisterForDeletion(DeletableObject *obj) { if (s_self) s_self->registerForDeletion(obj); }  void ShutdownManager::RemoveForDeletion(DeletableObject *obj) { if (s_self) s_self->removeForDeletion(obj); }
namespace JNI {BaseObject::BaseObject()   : exceptionHandling(ClearExceptions){}