}
public String createAlbum(String title, String description, boolean privateAlbum) {
LOG.info(String.format("Attempting to create %s Picasa album...",
privateAlbum ? "private" : "public"));
AlbumEntry album = new AlbumEntry();
if (privateAlbum) {
album.setAccess(GphotoAccess.Value.PRIVATE);
} else {
album.setAccess(GphotoAccess.Value.PUBLIC);
}
album.setTitle(new PlainTextConstruct(title));
album.setDescription(new PlainTextConstruct(description));
try {
AlbumEntry albumEntry = service.insert(new URL(USER_FEED_URL), album);
String albumUrl = albumEntry.getFeedLink().getHref();
LOG.info(String.format("Created %s Picasa album: %s",
privateAlbum ? "private" : "public", albumUrl));
return albumUrl;
} catch (MalformedURLException e) {