docs: @Override
      public ResourceType getType(String contentType, File archive) throws InvalidParameterException {
          ResourceType type = null;
          if ("install".equalsIgnoreCase(contentType)) {
              type = ResourceType.INSTALL;
          } else if ("addon".equalsIgnoreCase(contentType)) {
              type = ResourceType.ADDON;
          } else {
              throw new InvalidParameterException("The content type of the archive file " + archive + " is "
                                                  + contentType
                                                  + " but only \"install\" and \"addon\" are valid");
          }
          return type;
      }