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