private static iTunesGenre BuildGenre(Dictionary<string, iTunesGenre> dictionaryGenre, iTunesGenre childGenreFolder, iTunesMusicLibrary folder, Dictionary<string, string> data)
 {
     if (!string.IsNullOrEmpty(data["Genre"]))
     {
         if (dictionaryGenre.ContainsKey(data["Genre"]))
             childGenreFolder = dictionaryGenre[data["Genre"]];
         else
         {
             childGenreFolder = new iTunesGenre();
             childGenreFolder.GenreName = data["Genre"];
             childGenreFolder.Id = childGenreFolder.Name.GetMD5();
             folder.Genres.Add(childGenreFolder);
             dictionaryGenre.Add(data["Genre"], childGenreFolder);
         }
     }
     return childGenreFolder;
 }
        private static iTunesArtist BuildArtist(Dictionary<string, iTunesArtist> dictionaryArtist, iTunesGenre childGenreFolder, iTunesMusicLibrary folder, Dictionary<string, string> data)
        {
            iTunesArtist childArtistFolder;
            if (dictionaryArtist.ContainsKey(data["Artist"]))
                childArtistFolder = dictionaryArtist[data["Artist"]];
            else
            {
                childArtistFolder = new iTunesArtist();
                childArtistFolder.ArtistName = data["Artist"];
                childArtistFolder.Id = childArtistFolder.Name.GetMD5();

                if (childGenreFolder != null && !string.IsNullOrEmpty(data["Genre"]))
                {
                    childGenreFolder.Artists.Add(childArtistFolder);
                }
                folder.Artists.Add(childArtistFolder);
                dictionaryArtist.Add(data["Artist"], childArtistFolder);
            }
            return childArtistFolder;
        }