protected void addFeed(Feed feed, Element parent) throws FeedException { Element eFeed = parent; populateFeedHeader(feed, eFeed); generateForeignMarkup(eFeed, (List) feed.getForeignMarkup()); checkFeedHeaderConstraints(eFeed); generateFeedModules(feed.getModules(), eFeed); }
@SuppressWarnings("unchecked") private void addForeignMarkup(Feed feed, String name, String value) { final Element elem = new Element(name); elem.setText(String.valueOf(value)); ((List) feed.getForeignMarkup()).add(elem); }