protected void finish(PlaylistStateItemJSON result) { if (fieldGeneratorIndex.have_value) { result.setIndex(fieldGeneratorIndex.value); fieldGeneratorIndex.have_value = false; } if (fieldGeneratorID.have_value) { result.setID(fieldGeneratorID.value); fieldGeneratorID.have_value = false; } if (fieldGeneratorMusicService.have_value) { result.setMusicService(fieldGeneratorMusicService.value); fieldGeneratorMusicService.have_value = false; } }