code: public <T extends Archive<T>> ArchiveFormat getArchiveFormatFromExtensionMapping(final Class<T> type) {
          ExtensionWrapper extensionWrapper = extensionMappings.get(type);
          if (extensionWrapper == null) {
              loadExtensionMapping(type);
          }
          extensionWrapper = extensionMappings.get(type);
          if (extensionWrapper == null) {
              throw UnknownExtensionTypeExceptionDelegator.newExceptionInstance(type);
          }
          String archiveFormat = extensionWrapper.getProperty("archiveFormat");
          return ArchiveFormat.valueOf(archiveFormat);
      }
docs: {@inheritDoc}
  
  @see org.jboss.shrinkwrap.api.ExtensionLoader#getArchiveFormatFromExtensionMapping(java.lang.Class)