code: protected OutputStream createOutputStream() throws IOException {
        if (asFile().isPresent()) {
           return new FileOutputStream(asFile().orElse(null));
        }
        return null;
  
     }
docs: Create output stream output stream.
  
  @return the output stream
  @throws IOException the io exception