docs: public Document outputJDom(final WireFeed feed) throws IllegalArgumentException, FeedException {
          final String type = feed.getFeedType();
          final WireFeedGenerator generator = getFeedGenerators().getGenerator(type);
          if (generator == null) {
              throw new IllegalArgumentException("Invalid feed type [" + type + "]");
          }
  
          if (!generator.getType().equals(type)) {
              throw new IllegalArgumentException("WireFeedOutput type[" + type + "] and WireFeed type [" + type + "] don't match");
          }
          return generator.generate(feed);
      }