* @return the structure containing alerts
*/
public org.apache.abdera.model.Feed getFeed() {
// Create a new Feed
Factory factory = Abdera.getNewFactory();
Feed feed = factory.newFeed();
feed.setTitle("Apache Tuscany Feed Aggregator");
feed.setSubtitle("A sample showing an SCA application to aggregate various types of feeds");
feed.addAuthor("Apache Tuscany");
feed.addLink("http://incubator.apache.org/tuscany");
// Aggregate entries from feed1 and feed2
try {
AlertsType alerts = this.alerts.getAllNewAlerts("");
for( Object alertObject : alerts.getAlert() ){
AlertType alert = ((AlertType)alertObject);
Entry entry = factory.newEntry();
entry.setTitle(alert.getTitle());
//entry.(alert.getSummary());
entry.addLink(alert.getAddress());
entry.setPublished(dateFormatter.parse(alert.getDate()));