Person person = (Person) o;
content = new AtomContent(person);
id = "urn:guid:" + person.getId();
updated = person.getUpdated();
} else if (o instanceof Activity) {
Activity activity = (Activity) o;
content = new AtomContent(activity);
title = activity.getTitle();
summary = new AtomSummary(activity.getBody());
link = new AtomLink("self", activity.getUrl());
icon = activity.getStreamFaviconUrl();
source = new AtomSource(activity);
generator = new AtomGenerator(activity);
author = new AtomAuthor(activity);
updated = activity.getUpdated();
} else if (o instanceof ActivityEntry) {
ActivityEntry activity = (ActivityEntry)o;
id = activity.getId();
title = activity.getTitle();
summary = new AtomSummary(activity.getObject().getSummary());
link = new AtomLink("alternate", activity.getObject().getUrl());
author = new AtomAuthor(activity);
content = new AtomContent(activity);
try {
updated = new SimpleDateFormat().parse(activity.getPublished());
} catch (ParseException e) {
// TODO: map published to updated field correctly
}
} else if (oCopy instanceof Entry) {
Entry<?, ?> e = (Entry<?, ?>) oCopy;