code: private List<BundlePath> getItemPathList(List<BundlePath> itemList, Map<String, String> variants) {
  		if (variants == null || variants.isEmpty()) {
  			return itemList;
  		}
  
  		List<BundlePath> rets = new ArrayList<>();
  
  		for (BundlePath bundlePath : itemList) {
  			String path = bundlePath.getPath();
  			if (generatorRegistry.isPathGenerated(path)) {
  				Set<String> variantTypes = generatorRegistry.getGeneratedResourceVariantTypes(path);
  				String variantKey = VariantUtils.getVariantKey(variants, variantTypes);
  				if (StringUtils.isNotEmpty(variantKey)) {
  					rets.add(new BundlePath(bundlePath.getBundlePrefix(),
  							VariantUtils.getVariantBundleName(path, variantKey, true)));
  				} else {
  					rets.add(bundlePath);
  				}
  			} else {
  				rets.add(bundlePath);
  			}
  		}
  		return rets;
  	}
docs: Filters the bundlePath list given in parameter using the specified
  variants
  
  @param itemList
  the list of bundlePath
  @param variants
  the variants
  @return the filtered list of bundlePath