// Iterate over all the variants populating selection specific data
// structures.
while (variants.hasNext()) {
Variant variant = (Variant) variants.next();
Selection selection = variant.getSelection();
if (selection instanceof TargetedSelection) {
TargetedSelection targetedSelection =
(TargetedSelection) selection;
// Only generate categories if they are supported by this