code: @Override
      public ManifestDescriptor fromStream(InputStream in, boolean close) throws IllegalArgumentException,
          DescriptorImportException {
          if (in == null)
              throw new IllegalArgumentException("Stream cannot be null");
  
          try {
              return new ManifestDescriptorImpl(descriptorName, new ManifestModel(in));
          } catch (Exception e) {
              throw new DescriptorImportException(e.getMessage(), e);
          } finally {
              if (close) {
                  try {
                      in.close();
                  } catch (IOException e) {
                      throw new DescriptorImportException("Input stream not closed", e);
                  }
              }
          }
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.descriptor.api.DescriptorImporter#fromStream(java.io.InputStream, boolean)