}
medium.setLabel(label);
Collection<Artist> artists = ArtistFacade.findByName(artistField
.getText());
Artist artist;
if (artists == null || artists.size() == 0) {
artist = new Artist();
artist.setName(artistField.getText());
} else if (artists.size() == 1) {
artist = artists.iterator().next();
} else {
throw new UnsupportedOperationException("There ought to popup a list");
}