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