* @param playlist Basic iTunes playlist object corresponding to the new playlist.
* @return The new playlist
* @throws JitcaException if an error occurs.
*/
private UserPlaylist createUserPlaylist(IITPlaylist playlist) throws JitcaException {
Playlist newPlaylist = this.createPlaylist(playlist);
if (!newPlaylist.isUserPlaylist()) {
throw new PlaylistException("Problem occured during creation of new playlist \"" + playlist.getName() + "\" ");
}
return (UserPlaylistImpl) newPlaylist;
}