// into attributes' srcType
if (variantType == VariantType.VIDEO) {
VideoMetaData metaData = (VideoMetaData) variant.getMetaData();
encodingIterator = metaData.getVideoEncoding().mimeTypes();
} else if (variantType == VariantType.AUDIO) {
AudioMetaData metaData = (AudioMetaData) variant.getMetaData();
encodingIterator = metaData.getAudioEncoding().mimeTypes();
} else if (variantType == VariantType.IMAGE) {
// This is incorrect if the asset is marked as
// <conversion-mode>always</conversion-mode>
// as we do not know what MAP will convert it to.
ImageMetaData metaData = (ImageMetaData) variant.getMetaData();
encodingIterator = metaData.getImageEncoding().mimeTypes();
}
int counter = 0;
while (encodingIterator != null && encodingIterator.hasNext()) {
if (counter > 0) {