code: @Override
      public final void exportTo(final File target, final boolean overwrite) throws ArchiveExportException,
          FileExistsException {
          // Get stream and perform precondition checks
          final OutputStream out = this.getOutputStreamToFile(target, overwrite);
  
          try {
              // Write out
              this.exportTo(out);
          } finally {
              // Close
              try {
                  out.close();
              } catch (final IOException ioe) {
                  // Just log
                  log.warning("Could not close " + out + ": " + ioe);
              }
          }
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.api.exporter.StreamExporter#exportTo(java.io.File, boolean)