pub fn get_jni_singleton_with_error(
    singleton_name: &str
) -> Result<Arc<JniSingleton>>