private org.apache.tuscany.sca.implementation.data.collection.Entry<Object, Object> createEntry(SyndEntry feedEntry) {
if (feedEntry != null) {
if (itemClassType.getPhysical() == Item.class) {
String key = feedEntry.getUri();
Item item = new Item();
item.setTitle(feedEntry.getTitle());
List<?> contents = feedEntry.getContents();
if (!contents.isEmpty()) {
SyndContent content = (SyndContent)contents.get(0);
String value = content.getValue();
item.setContents(value);
}
for (Object l : feedEntry.getLinks()) {
SyndLink link = (SyndLink)l;
if (link.getRel() == null || "edit".equals(link.getRel())) {
String href = link.getHref();
if (href.startsWith("null/")) {
href = href.substring(5);
}
item.setLink(href);
break;
}
}
item.setDate(feedEntry.getPublishedDate());
return new org.apache.tuscany.sca.implementation.data.collection.Entry<Object, Object>(key, item);
} else {
String key = feedEntry.getUri();