Element link = element(Namespace.ATOM.getUrl(), "link",
attribute("href", linkField.getLink().getHref()),
attribute("title", linkField.getLink().getTitle()));
appendChildren(element, link);
} else if (field instanceof PersonField) {
PersonField personField = (PersonField)field;
Element name = addText(element(Namespace.ATOM.getUrl(), "name"), personField.getPerson().getName());
Element email = addText(element(Namespace.ATOM.getUrl(), "email"), personField.getPerson().getEmail());
Element userid = addText(element(Namespace.SNX.getUrl(), "userid"), personField.getPerson().getUserid());
if (personField.getPerson().getEmail() != null) {
appendChildren(element, name, email, userid);
} else {
appendChildren(element, name, userid);
};
} else if (field instanceof TextField) {