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