if (entry != null) {
Feed feed = entry.getParentElement();
entry = (Entry) entry.clone();
entry.setSource(feed.getAsSource());
Document<Entry> entry_doc = entry.getDocument();
AbstractResponseContext rc = (full) ?
new BaseResponseContext<Document<Entry>>(entry_doc) :
new EmptyResponseContext(200);
rc.setEntityTag(calculateEntityTag(entry));
return rc;
} else {
return new EmptyResponseContext(404);
}
}