// Path: src/main/java/org/chorem/ecd/model/news/AggregatedNews.java
// public class AggregatedNews {
// 
//     private Map<String, List<String>> newsPerFeed = Maps.newHashMap();
// 
//     public void addNews(String newsFeedTitle, List<String> newsFeedNews) {
//         newsPerFeed.put(newsFeedTitle, newsFeedNews);
//     }
// 
// }


import org.chorem.ecd.model.news.AggregatedNews;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.JDOMException;
import org.jdom2.input.SAXBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.net.URL;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
package org.chorem.ecd.task;




/**
 * @author Julien Gaston (gaston@codelutin.com)
 */
public class AggregatedNewsBuilderPeriodicTask extends EcdPeriodicTask {

    private static final Logger logger = LoggerFactory.getLogger(AggregatedNewsBuilderPeriodicTask.class);

    private final List<URL> newsFeedUrls;

    public static final String NAME = "AggregatedNewsBuilder";

    public AggregatedNewsBuilderPeriodicTask(List<URL> newsFeedUrls) {
        this.newsFeedUrls = newsFeedUrls;
    }

    @Override
    public void run() {
// Path: src/main/java/org/chorem/ecd/model/news/AggregatedNews.java
// public class AggregatedNews {
// 
//     private Map<String, List<String>> newsPerFeed = Maps.newHashMap();
// 
//     public void addNews(String newsFeedTitle, List<String> newsFeedNews) {
//         newsPerFeed.put(newsFeedTitle, newsFeedNews);
//     }
// 
// }


// Path: src/main/java/org/chorem/ecd/task/AggregatedNewsBuilderPeriodicTask.java
import org.chorem.ecd.model.news.AggregatedNews;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.JDOMException;
import org.jdom2.input.SAXBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.net.URL;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;

package org.chorem.ecd.task;




/**
 * @author Julien Gaston (gaston@codelutin.com)
 */
public class AggregatedNewsBuilderPeriodicTask extends EcdPeriodicTask {

    private static final Logger logger = LoggerFactory.getLogger(AggregatedNewsBuilderPeriodicTask.class);

    private final List<URL> newsFeedUrls;

    public static final String NAME = "AggregatedNewsBuilder";

    public AggregatedNewsBuilderPeriodicTask(List<URL> newsFeedUrls) {
        this.newsFeedUrls = newsFeedUrls;
    }

    @Override
    public void run() {
        AggregatedNews aggregatedNews = new AggregatedNews();