List<PhotoModel> result = new ArrayList<PhotoModel>();
try {
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 + "/albumid/" + albumid);
AlbumFeed albumFeed = service.getFeed(feedUrl, AlbumFeed.class);
PhotoModel photoModel = null;
for (PhotoEntry photoEntry : albumFeed.getPhotoEntries()) {
photoModel = new PhotoModel();
photoModel.setTitle(photoEntry.getTitle().getPlainText());
photoModel.setThumbURL((photoEntry.getMediaThumbnails().get(2).getUrl()));
photoModel.setHeight(photoEntry.getMediaGroup().getContents().get(0).getHeight());
photoModel.setWidth(photoEntry.getMediaGroup().getContents().get(0).getWidth());