return;
}
setCommonElementProperties(factory, entry, builder, o);
AbstractEntryBuilder theBuilder = (AbstractEntryBuilder)builder;
String author = theBuilder.getAuthor(o);
if (author != null) {
entry.addAuthor(author);
} else {
entry.addAuthor("CXF JAX-RS");
}
String title = theBuilder.getTitle(o);
if (title != null) {
entry.setTitle(title);
} else {
entry.setTitle(o.getClass().getSimpleName());
}
String id = theBuilder.getId(o);
if (id != null) {
entry.setId(id);
} else {
entry.setId("uuid:" + UUID.randomUUID().toString());
}
String updated = theBuilder.getUpdated(o);
if (updated != null) {
entry.setUpdated(updated);
} else {
entry.setUpdated(new Date());
}
Map<String, String> links = theBuilder.getLinks(o);
if (links != null) {
for (Map.Entry<String, String> e : links.entrySet()) {
entry.addLink(e.getKey(), e.getValue());
}
}
// entry specific
String published = theBuilder.getPublished(o);
if (published != null) {
entry.setPublished(published);
}
String summary = theBuilder.getSummary(o);
if (summary != null) {
entry.setSummary(summary);
}
List<String> terms = theBuilder.getCategories(o);
if (terms != null) {
for (String term : terms) {
entry.addCategory(term);
}
}