public override global::System.Object openOutputStream(global::java.lang.Object connection) {
     if (connection is java.lang.String) {
         StorageFolder store = getStore((java.lang.String)connection);
         try {
             Stream s = Task.Run(() => store.OpenStreamForWriteAsync(nativePathStore((java.lang.String)connection), CreationCollisionOption.OpenIfExists)).GetAwaiter().GetResult();
             return new OutputStreamProxy(s);
         }
         catch (Exception e) {
             java.io.FileNotFoundException ex = new global::java.io.FileNotFoundException();
             ex.@this(toJava("FileNotFoundException - " + e.Message));
             throw new global::org.xmlvm._nExceptionAdapter(ex);
             /// Stream s = Task.Run(() => KnownFolders.CameraRoll.OpenStreamForWriteAsync(nativePath((java.lang.String)connection), CreationCollisionOption.OpenIfExists)).GetAwaiter().GetResult();
             ///   return new OutputStreamProxy(s);
         }
     }
     com.codename1.io.BufferedOutputStream bo = new com.codename1.io.BufferedOutputStream();
     bo.@this(new OutputStreamProxy(((NetworkOperation)connection).requestStream));
     return bo;
 }
 public override global::System.Object openOutputStream(global::java.lang.Object n1)
 {
     NetworkOperation n = (NetworkOperation)n1;
     com.codename1.io.BufferedOutputStream bo = new com.codename1.io.BufferedOutputStream();
     bo.@this(new OutputStreamProxy(n.requestStream));
     return bo;
 }