code: @Override
      public T fromString(final String string) throws IllegalArgumentException, DescriptorImportException {
          // Precondition check
          if (string == null) {
              throw new IllegalArgumentException("Input must be specified");
          }
  
          // Check if empty String
          if (string.trim().length() == 0) {
              return endUserViewImplType.cast(ApiExposition.createFromImplModelType(endUserViewImplType, descriptorName));
          }
  
          // Return
          return this.fromStream(new ByteArrayInputStream(string.getBytes()));
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.descriptor.api.DescriptorImporter#from(java.lang.String)