public ActivityEntryImpl convert(ActivityStreamsEntry saved) {
if(saved == null) {
return null;
}
ActivityEntryImpl impl = new ActivityEntryImpl();
impl.setActor(convert(saved.getActor()));
impl.setContent(saved.getContent());
impl.setExtensions(convert(saved.getExtensions()));
impl.setGenerator(convert(saved.getGenerator()));
impl.setIcon(convert(saved.getIcon()));
impl.setId(saved.getId());
impl.setObject(convert(saved.getObject()));
impl.setOpenSocial(convert(saved.getOpenSocial()));
impl.setProvider(convert(saved.getProvider()));
impl.setPublished(dateToString(saved.getPublished()));
impl.setTarget(convert(saved.getTarget()));
impl.setUpdated(dateToString(saved.getUpdated()));
impl.setTitle(saved.getTitle());
impl.setUrl(saved.getUrl());
impl.setVerb(saved.getVerb());
return impl;
}