entity.getClass(), (Metadata) getMetadata(),
getLogger());
Feed feed = new Feed();
feed.getEntries().add(new Entry(rep, entryContentHandler));
} catch (ResourceException re) {
throw new ResourceException(re.getStatus(),
"Can't add entity to this entity set "
+ resource.getReference());
} finally {
this.latestRequest = resource.getRequest();
this.latestResponse = resource.getResponse();