code: private void removeBootstrapResources(UIViewRoot root, FacesContext context) {
  		String theme = getTheme(context);
  
  		if (theme.equals(THEME_NAME_DEFAULT) || theme.equals(THEME_NAME_OTHER)) {
  			for (UIComponent resource : root.getComponentResources(context, "head")) {
  				String name = (String) resource.getAttributes().get("name");
  				String library = (String) resource.getAttributes().get("library");
  				if (C.BSF_LIBRARY.equals(library) && name != null) {
  					if (name.endsWith("bootstrap.min.css") || name.endsWith("bootstrap.css")
  							|| name.endsWith("core.css") || name.endsWith("theme.css")) {
  						resource.setInView(false);
  						root.removeComponentResource(context, resource);
  					}
  				}
  			}
  		}
  		/*
  		 * List<UIComponent> resourcesToRemove = new ArrayList<UIComponent>(); for
  		 * (UIComponent resource : root.getComponentResources(context, "head")) { String
  		 * name = (String) resource.getAttributes().get("name"); String library =
  		 * (String) resource.getAttributes().get("library"); if ("bsf".equals(library)
  		 * && name != null && name.endsWith(".css")) { resourcesToRemove.add(resource);
  		 * } } for (UIComponent c : resourcesToRemove) { c.setInView(false);
  		 * root.removeComponentResource(context, c); //System.out.println("-2" +
  		 * c.getClientId()); }
  		 */
  	}
docs: Remove Bootstrap CSS files (called if the context param
  "net.bootsfaces.get_bootstrap_from_cdn" is set). Only needed for Default
  Theme (Bootstrap) and custom themes, other themes would get default theme
  look and feel otherwise.
  
  @param root    The current UIViewRoot
  @param context The current FacesContext