code: private boolean isFontAwesomeComponentUsedAndRemoveIt() {
  		FacesContext fc = FacesContext.getCurrentInstance();
  		UIViewRoot viewRoot = fc.getViewRoot();
  		ListIterator<UIComponent> resourceIterator = (viewRoot.getComponentResources(fc, "head")).listIterator();
  		UIComponent fontAwesomeResource = null;
  		while (resourceIterator.hasNext()) {
  			UIComponent resource = resourceIterator.next();
  			String name = (String) resource.getAttributes().get("name");
  			// rw.write("\n<!-- res: '"+name+"' -->" );
  			if (name != null) {
  				if (name.endsWith("font-awesome.css"))
  					fontAwesomeResource = resource;
  			}
  		}
  		if (null != fontAwesomeResource) {
  			fontAwesomeResource.setInView(false);
  			viewRoot.removeComponentResource(fc, fontAwesomeResource);
  			// System.out.println("-3" + fontAwesomeResource.getClientId());
  			return true;
  		}
  		return false;
  	}
docs: Look whether a b:iconAwesome component is used. If so, the font-awesome.css
  is removed from the resource list because it's loaded from the CDN.
  
  @return true, if the font-awesome.css is found in the resource list. Note the
  side effect of this method!