code: public VariantResolver buildVariant() {
  		FirstExistingResourceVariantResolver variantResolver = new FirstExistingResourceVariantResolver(buildDefaultVariantResolver());
  		for (Builder<? extends TemplateParser> builder : templateBuilders) {
  			if (builder instanceof VariantBuilder) {
  				variantResolver.addVariantResolver(((VariantBuilder<?>) builder).buildVariant());
  			}
  		}
  		return variantResolver;
  	}
docs: Instantiates and configures the variant resolution. Variant resolution is
  a chain of resolvers. The first resolver that is able to resolve a
  variant is used. If no resolver is able to resolve a variant, it uses the
  default variant resolver (see {@link #missingVariant(boolean)} and
  {@link #missingVariant(VariantResolver)}).
  
  @return the variant resolver