try {
if (MimeTypeHelper.isMatch(request.getContentType(), "application/atom+xml;type=entry")) {
MimeType type = new MimeType(request.getContentType());
String charset = type.getParameter("charset");
String uri = AppTest.INSTANCE.getBase() + "/collections/entries";
ParserOptions options = getParser().getDefaultParserOptions();
options.setCharset(charset);
Document<?> doc = getParser().parse(request.getInputStream(), uri, options);
if (doc.getRoot() instanceof Entry) {
Entry entry = (Entry)doc.getRoot().clone();
String newID =
AppTest.INSTANCE.getBase() + "/collections/entries/"