code: @Override
      public T fromStream(final InputStream in, final boolean close) throws IllegalArgumentException,
          DescriptorImportException {
          // Precondition check
          if (in == null) {
              throw new IllegalArgumentException("InputStream must be specified");
          }
  
          final Node rootNode = this.getNodeImporter().importAsNode(in, close);
  
          // Create the end-user view
          final Constructor<T> constructor;
          try {
              constructor = endUserViewImplType.getConstructor(String.class, Node.class);
          } catch (final NoSuchMethodException e) {
              throw new DescriptorImportException("Descriptor impl " + endUserViewImplType.getName()
                  + " does not have a constructor accepting " + String.class.getName() + " and " + Node.class.getName(),
                  e);
          }
          final T descriptor;
          try {
              descriptor = constructor.newInstance(descriptorName, rootNode);
          } catch (final Exception e) {
              throw new DescriptorImportException("Could not create new instance using " + constructor + " with arg: "
                  + rootNode);
          }
  
          // Return
          return descriptor;
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.descriptor.api.DescriptorImporter#fromStream(java.io.InputStream)