throw new IllegalArgumentException(String.format("Could not find Assignment id '%s' in "
+ "datastore.", assignmentId));
}
String albumUrl;
ModerationStatus statusEnum = ModerationStatus.valueOf(status);
switch (statusEnum) {
case APPROVED:
albumUrl = picasaApi.createAlbum(title, description, false);
if (util.isNullOrEmpty(albumUrl)) {
throw new IllegalStateException("Unable to create 'APPROVED' album.");