entry.setPublishedDate(new Date());
return entry;
}
protected SyndContent createEntryContent(MessageExchange exchange, NormalizedMessage message) throws TransformerException, MessagingException {
SyndContent description = new SyndContentImpl();
description.setType(contentType);
Source content = message.getContent();
String value = ExpressionHelper.asString(getEntryValue(), exchange, message, null);
if (value == null && content != null) {
value = getSourceTransformer().toString(content);
value = encodeContent(value);
}
if (value != null) {
description.setValue(value);
}
return description;
}