pub fn option_to_java<'a, T: ToJava>( env: &mut JNIEnv<'a>, opt: &Option<T>, ) -> JObject<'a>
Helper function to convert Option to Java