* was null and an entry had to be added.
*/
private Map targetVariantAtCategories(
Variant variant, List categories, Map category2Variant) {
for (int j = 0; j < categories.size(); j++) {
CategoryReference reference = (CategoryReference) categories.get(j);
String categoryName = reference.getCategoryName();
if (category2Variant == null) {
category2Variant = new HashMap();
}
category2Variant.put(categoryName, variant);
}