if(this.getThreadLocalRequest().getSession().getAttribute("sessionToken") != null){
service.setAuthSubToken(this.getThreadLocalRequest().getSession().getAttribute("sessionToken").toString());
}
URL feedUrl = new URL("https://www.google.com/m8/feeds/contacts/default/full");
ContactQuery contactQuery = new ContactQuery(feedUrl);
contactQuery.setMaxResults(1000);
ContactFeed resultFeed = service.getFeed(contactQuery, ContactFeed.class);
for (ContactEntry contactEntry : resultFeed.getEntries()) {
if (contactEntry.hasEmailAddresses()) {
for (Email email : contactEntry.getEmailAddresses()) {