// If the PrimeFaces p:fileUpload should be forced to use a ResourceURL, then return a special
// form renderer. http://issues.liferay.com/browse/FACES-1194
Product primeFaces = ProductMap.getInstance().get(ProductConstants.PRIMEFACES);
if (primeFaces.isDetected() && (primeFaces.getMajorVersion() == 3) && (primeFaces.getMinorVersion() < 3)) {
renderer = new FormRendererPrimeFacesImpl(renderer);
}
}
else if (UIOutput.COMPONENT_FAMILY.equals(family) &&
(SCRIPT_RENDERER_TYPE.equals(rendererType) || STYLESHEET_RENDERER_TYPE.equals(rendererType))) {
renderer = new ResourceRendererBridgeImpl(renderer);