//for ROME properties loader
Thread.currentThread().setContextClassLoader(getClass()
.getClassLoader());
c = getGmailConnection();
c.setUrl(gmailFeedUrl);
final URLConnection con = c.openConnection();
final SyndFeedInput feedInput = new SyndFeedInput();
final SyndFeed gmail = feedInput.build(new XmlReader(con));
for (final Object entry : gmail.getEntries()) {
if (entry instanceof SyndEntry) {
messages.add(new RssGmailMessage((SyndEntry) entry));