((AlertType)alert).setSourceId(sourceType.getId());
// convert from SDO to POJO so that the
// JSONRPC binding will work. It can't currently
// handle SDOs
AlertType newAlert = new AlertTypeNonSDOImpl();
newAlert.setSourceId(((AlertType)alert).getSourceId());
newAlert.setTitle(((AlertType)alert).getTitle());
newAlert.setSummary(((AlertType)alert).getSummary());
newAlert.setAddress(((AlertType)alert).getAddress());
newAlert.setDate(((AlertType)alert).getDate());
newAlert.setId(((AlertType)alert).getId());
newAlert.setUnread(((AlertType)alert).isUnread());
returnAlertList.add(newAlert);
}
// update the time last checked for this source