code: @Override
      public String exportAsString() throws DescriptorExportException {
          // Export as bytes
          final ByteArrayOutputStream baos = new ByteArrayOutputStream();
          this.exportTo(baos);
  
          // Make a String out of the bytes
          final String content;
          try {
              content = baos.toString(Charset.UTF8.name());
          } catch (final UnsupportedEncodingException e) {
              throw new DescriptorExportException("Inconsistent encoding used during export", e);
          }
  
          // Return
          return content;
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.descriptor.api.Descriptor#exportAsString()