resource.accept(MediaType.APPLICATION_ATOM_XML_TYPE)
.contentType(MediaType.APPLICATION_ATOM_XML_TYPE).post(AtomFeed.class,
entryToPost);
ByteArrayOutputStream os = new ByteArrayOutputStream();
afp.writeTo(responseEntity,
AtomFeed.class,
null,
null,
MediaType.APPLICATION_ATOM_XML_TYPE,
null,