public UIComponent getSelectItemComponent(SelectItem item) {
        if (item instanceof WrapperSelectItem) {
            WrapperSelectItem wrapper = (WrapperSelectItem) item;
            return wrapper.getComponent();
        }

        return null;
    }
Helper method to find the defining component of a SelectItem so passthrough attributes can be rendered.
@param item the SelectItem to check
@return either NULL or a component the SelectItem was defined by
primefaces/src/main/java/org/primefaces/renderkit/SelectRenderer.java