PicasawebService service = new PicasawebService("Kirin-App");
service.setAuthSubToken(this.getThreadLocalRequest().getSession().getAttribute("sessionToken").toString());
URL feedUrl = new URL("https://picasaweb.google.com/data/feed/api/user/" + userId + "?kind=album");
UserFeed userFeed = service.getFeed(feedUrl, UserFeed.class);
AlbumModel albumModel = null;
for (AlbumEntry albumEntry : userFeed.getAlbumEntries()) {
albumModel = new AlbumModel();
albumModel.setAlbumid(albumEntry.getGphotoId());
albumModel.setName(albumEntry.getTitle().getPlainText());
albumModel.setUpdate(albumEntry.getUpdated().toString());
result.add(albumModel);