switch(t) {
case ENTRY:
try {
if (MimeTypeHelper.isMatch(request.getContentType(), "application/atom+xml")) {
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) {