public static void addResourceToBody(FacesContext context, String type, String libraryName, String resourceName) {
        addScriptResourceToTarget(context, type, libraryName, resourceName, "body");
    }
Adds a resource to the body section.
primefaces/src/main/java/org/primefaces/util/ResourceUtils.java