}
}
}
private void createPhoto(AlbumEntry albumEntry) throws Exception {
PhotoEntry photo = new PhotoEntry();
String title = getString("Title");
photo.setTitle(new PlainTextConstruct(title));
String description = getString("Description");
photo.setDescription(new PlainTextConstruct(description));
photo.setTimestamp(new Date());
OtherContent content = new OtherContent();
File file = null;
while (file == null || !file.canRead()) {
file = new File(getString("Photo location"));
}
content.setBytes(getBytes(file));
content.setMimeType(new ContentType("image/jpeg"));
photo.setContent(content);
insert(albumEntry, photo);
}