code: public static String translateSize(String size, boolean strict) {
  		if (strict) {
  			boolean found=false;
  			for (String s: validValues) {
  				if (s.equals(size)) {
  					found=true;
  					break;
  				}
  			}
  			if (!found) {
  				throw new FacesException("The size of b:panel must be one of the values xs, sm, md, lg, tiny-screen, small-screen, medium-screen, or large-screen");
  			}
  		}
  		if(size.equalsIgnoreCase("xs") || size.equalsIgnoreCase("tiny-screen")) return "xs";
  		if(size.equalsIgnoreCase("sm") || size.equalsIgnoreCase("small-screen")) return "sm";
  		if(size.equalsIgnoreCase("md") || size.equalsIgnoreCase("medium-screen")) return "md";
  		if(size.equalsIgnoreCase("lg") || size.equalsIgnoreCase("large-screen")) return "lg";
  		return size;
  	}
docs: Translate Sizes
  @param size
  @return