public static MusicProtocol.MusicAlbum convertMusicReleaseToMusicAlbum(MusicRelease release) {
        MusicProtocol.MusicAlbum.Builder albumBuilder = MusicProtocol.MusicAlbum.newBuilder();

        if (release == null) {
            return albumBuilder.build();
        }

        if (!StringUtils.isBlank(release.getTitle())) {
            albumBuilder.setTitle(release.getTitle());
        }

        if (!StringUtils.isBlank(release.getIcpnCode())) {
            albumBuilder.setIcpnCode(release.getIcpnCode());
        }

        if (release.getByArtists() != null && !release.getByArtists().isEmpty()) {
            List<MusicProtocol.MusicArtist> albumArtists = convertMusicGroupsToMusicArtists(release.getByArtists());
            albumBuilder.addAllAlbumArtist(albumArtists);
        }

        return albumBuilder.build();
    }
Helper class for converting incoming DTP format playlists and playlist-tracks to Apple Music format for transport to
Apple Music Data Transfer services.
extensions/data-transfer/portability-data-transfer-apple/src/main/java/org/datatransferproject/datatransfer/apple/music/data/converters/AppleMusicPlaylistConverter.java