}
for(ChangeBean change:changes)
{
SyndEntry entry;
SyndContent description;
entry = new SyndEntryImpl();
XfoafSscfResource changeRes = null;
XfoafSscfResource changedRes = null;
changedRes = XfoafSscfResource.getXfoafSscfResource(change.getChangedUri());
if((change.getChangeType()==ChangeTypes.ADDED.getChangeType()
||change.getChangeType()==ChangeTypes.REMOVED.getChangeType())
&&change.getChangeUri()!=null)
{
changeRes = XfoafSscfResource.getXfoafSscfResource(change.getChangeUri());
}
entry.setTitle(ChangeContent.getTitle(change.getChangeType(), change.getDepth(),rb,changeRes));
//TODO: generate unique link
StringBuilder changeUri = new StringBuilder();
changeUri.append(SscfAjax.getServiceAddr(req)).append('/').append(CH_DISP_SERVLET).append('/')
.append(feedId).append('/').append(change.getId()).append("-").append(change.getDepth());
entry.setLink(changeUri.toString());
entry.setPublishedDate(change.getTimestamp());
description = new SyndContentImpl();
description.setType("text/html");
description.setValue(ChangeContent.getMessage(change.getChangeType(), change.getDepth(),
change.getChangeValue(), labelOfFeed, change.getChangedUri(),changedRes,changeRes,rb));
entry.setDescription(description);
entries.add(entry);
}