public void setShared(boolean shouldBeShared) throws PlaylistDeletedException, PlaylistException {
try {
this.iTunesCom.setProperty("Shared", shouldBeShared);
} catch (ITUNES_E_OBJECTDELETED e) {
throw new PlaylistDeletedException(this);
} catch (ITUNES_E_OBJECTLOCKED e){
throw new PlaylistException("Sharing is disabled, or is enabled for all playlists (not selected playlists), or playlist can't be shared.");
}
}