code: @Override
      public ManifestDescriptor fromString(String manifest) throws IllegalArgumentException, DescriptorImportException {
          if (manifest == null)
              throw new IllegalArgumentException("Manifest cannot be null");
  
          InputStream inputStream = new ByteArrayInputStream(manifest.getBytes());
          try {
              return new ManifestDescriptorImpl(descriptorName, new ManifestModel(inputStream));
          } catch (IOException e) {
              throw new DescriptorImportException(e.getMessage(), e);
          }
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.descriptor.api.DescriptorImporter#fromString(java.lang.String)