@Override
    public String getAsString(FacesContext facesContext, UIComponent component, Object object) {
        if (object == null
                || (object instanceof String && ((String) object).length() == 0)) {
            return null;
        }
        if (object instanceof Detallecotizacion) {
            Detallecotizacion o = (Detallecotizacion) object;
            return getStringKey(o.getIdDetallecotizacion());
        } else {
            Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "object {0} is of type {1}; expected type: {2}", new Object[]{object, object.getClass().getName(), Detallecotizacion.class.getName()});
            return null;
        }
    }