code: public static void addResourceAfterAngularJS(String library, String resource) {
  		FacesContext ctx = FacesContext.getCurrentInstance();
  		UIViewRoot v = ctx.getViewRoot();
  		Map<String, Object> viewMap = v.getViewMap();
  		@SuppressWarnings("unchecked")
  		Map<String, String> resourceMap = (Map<String, String>) viewMap.get(RESOURCE_KEY);
  		if (null == resourceMap) {
  			resourceMap = new HashMap<String, String>();
  			viewMap.put(RESOURCE_KEY, resourceMap);
  		}
  		String key = library + "#" + resource;
  		if (!resourceMap.containsKey(key)) {
  			resourceMap.put(key, resource);
  		}
  	}
docs: Registers a JS file that needs to be include in the header of the HTML
  file, but after jQuery and AngularJS.
  
  @param library
  The name of the sub-folder of the resources folder.
  @param resource
  The name of the resource file within the library folder.