/** * Add blog entries from the planet archive to a multi key map. * * @param mkm Map with blog entries stored with a key consisting of author name and rss feed link. * @param blogEntry Single blog entry retrieved from planet archive. */ protected void createMapEntry(MultiKeyMap<String, List<Node>> mkm, Node blogEntry) { List<Node> blogEntries = new ArrayList<Node>(); try { String author = PlanetUtil.formatName(blogEntry, "author"); String rssLink = PropertyUtil.getString(blogEntry, "rssLink", ""); if (mkm.containsKey(author, rssLink)) { blogEntries = mkm.get(author, rssLink); } if (blogEntry.hasProperty("pubDate")) { blogEntries.add(blogEntry); mkm.put(author, rssLink, blogEntries); } } catch (Exception e) { log.error("Could not add blog entry to statistics list: " + e.getMessage()); } }