public static <T extends Renderer<?>> T getUnwrappedRenderer(FacesContext context, String family, String rendererType) {
        Renderer<?> renderer = context.getRenderKit().getRenderer(family, rendererType);

        while (renderer instanceof FacesWrapper) {
            renderer = (Renderer<?>) ((FacesWrapper<?>) renderer).getWrapped();
        }

        return (T) renderer;
    }
Finds appropriate converter for a given value holder

@param context   FacesContext instance
@param component ValueHolder instance to look up converter for
@return          Converter
primefaces/src/main/java/org/primefaces/util/ComponentUtils.java