public static boolean isScript(UIComponent component) {
        return RENDERER_SCRIPT.equals(component.getRendererType());
    }
Adds the cookie represented by the arguments to the response. If the current HTTP conversation is secured
over SSL (e.g. https:) then the cookie is set to secure=true and sameSite=Strict.

@param context the FacesContext contains the External context we add the cookie to
@param name To be passed as the first argument to the <code>Cookie</code> constructor.
@param value To be passed as the second argument to the <code>Cookie</code> constructor.
@param properties A <code>Map</code> containing key/value pairs to be passed
as arguments to the setter methods as described above.
primefaces/src/main/java/org/primefaces/util/ResourceUtils.java