try {
pathToPublishFile = publishToFile.getCanonicalPath();
} catch (IOException ioe) {
pathToPublishFile = publishToFile.getAbsolutePath().toLowerCase();
}
CruiseControlFeed rssfeed = (CruiseControlFeed) rssFeeds.get(pathToPublishFile);
if (rssfeed == null) {
//Create a new RSS Feed and add it to the collection.
rssfeed = new CruiseControlFeed(publishToFile);
rssFeeds.put(pathToPublishFile, rssfeed);
}
rssfeed.incrementProjectCount();
return rssfeed;
}