code: private String getAvailableVariant(Map<String, String> curVariants) {
  
  		String variantKey = null;
  		if (variants != null) {
  			Map<String, String> availableVariants = generatorRegistry.getAvailableVariantMap(variants, curVariants);
  			variantKey = VariantUtils.getVariantKey(availableVariants);
  		}
  
  		return variantKey;
  	}
docs: Resolves a registered path from a variant key.
  
  @param variantKey
  the requested variant key
  @return the variant key to use