// TODO Fix chunked request with net client connector
ByteArrayOutputStream o = new ByteArrayOutputStream();
entry.write(o);
StringRepresentation r = new StringRepresentation(o.toString(),
MediaType.APPLICATION_ATOM);
Representation rep = resource.post(r);
EntryContentHandler<?> entryContentHandler = new EntryContentHandler<Object>(
entity.getClass(), (Metadata) getMetadata(),
getLogger());
Feed feed = new Feed();
feed.getEntries().add(new Entry(rep, entryContentHandler));