// Get/create id3v2 tag
ID3v2 id3v2Tag;
if (mp3File.hasId3v2Tag()) {
id3v2Tag = mp3File.getId3v2Tag();
} else {
id3v2Tag = new ID3v23Tag();
}
Exception err = null;
while (true) {
// Try saving twice; once with old tag data, and again after
// discarding corrupt data and starting over