device2Variant);
}
} else if (selection instanceof DefaultSelection) {
defaultVariant = variant;
} else if (selection instanceof EncodingSelection) {
InternalSingleEncoding encoding = (InternalSingleEncoding)
variant.getMetaData();
if (encoding2Variant == null) {
encoding2Variant = new HashMap();
}
encoding2Variant.put(encoding.getEncoding(), variant);
} else if (selection instanceof GenericImageSelection) {
if (genericImages == null) {
genericImages = new ArrayList();
}
genericImages.add(variant);