if (MimeTypeHelper.isMatch(request.getContentType(), "application/atom+xml;type=entry")) {
Entry entry = feed.getRoot().getEntries().get(target);
MimeType type = new MimeType(request.getContentType());
String charset = type.getParameter("charset");
String uri = AppTest.INSTANCE.getBase() + "/collections/entries/" + target;
ParserOptions options = getParser().getDefaultParserOptions();
options.setCharset(charset);
Document doc = getParser().parse(request.getInputStream(), uri, options);
if (doc.getRoot() instanceof Entry) {
Entry newentry = (Entry) doc.getRoot().clone();
if (newentry.getId().equals(entry.getId())) {
newentry.setUpdated(new Date());