pub fn handle_result<R, E>(
    env: &mut JNIEnv<'_>,
    result: Result<SdkJniResult<R>, E>
) -> Rwhere
    R: JniReturnValue,
    E: Any + Send + 'static,