public String getAsString(FacesContext facesContext, UIComponent component, Object object) {
if (object == null) {
return null;
}
if (object instanceof Telefono) {
Telefono o = (Telefono) object;
return getStringKey(o.getTelefonoId());
} else {
throw new IllegalArgumentException("object " + object + " is of type " + object.getClass().getName() + "; expected type: " + Telefono.class.getName());
}
}