public static UIOutput createResource(String type) {
        UIOutput outputScript = new UIOutput();
        outputScript.setRendererType(type);
        return outputScript;
    }
Creates a new UIOutput component with the specified renderer type.

@param type The renderer type
@return New UIOutput component
primefaces/src/main/java/org/primefaces/util/ResourceUtils.java