public List<Article> getItems() {
        System.out.println(baseUrl);
        List<Article> articles=new ArrayList<Article>();
       
        try {
            URL feedUrl = new URL(baseUrl);
            
            /* SyndFeedInput: parser to process RSS feeds into SyndFeed instance*/
            SyndFeedInput input = new SyndFeedInput();
            
            /* Load the RSS feed
             * XmlReader: reading an XML document
             * SyndFeed: rss feed
             */
            SyndFeed feed = input.build(new XmlReader(feedUrl));
            // Iterate through feed items, display each item title
            Iterator entryIter = feed.getEntries().iterator();
            ArticleDao ad = ArticleDao.getInstance();
            int id = ad.findAll().size();
            
            while (entryIter.hasNext())
            {
                SyndEntry entry = (SyndEntry) entryIter.next();
                Article article=new Article(id++,entry.getTitle(), entry.getDescription().getValue(), new Date(entry.getPublishedDate().getTime()));
                articles.add(article);
            }         
           
        } catch (IOException ex) {
                Logger.getLogger(RssFeadReader.class.getName()).log(Level.SEVERE, null, ex);    
        } catch (IllegalArgumentException ex) {
                Logger.getLogger(RssFeadReader.class.getName()).log(Level.SEVERE, null, ex);
        } catch (FeedException ex) {
                Logger.getLogger(RssFeadReader.class.getName()).log(Level.SEVERE, null, ex);
        }
        return articles;
    }