Changed to JNIRegistry instead of jRegistryKey