context.convertAnother(((ConfigurableHypermediaResource) root).getModel());
} else {
base.marshal(root, writer, context);
}
HypermediaResource resource = (HypermediaResource) root;
RelationBuilder builder = restfulie.newRelationBuilder();
resource.configureRelations(builder);
for (Relation t : builder.getRelations()) {
writer.startNode("atom:link");
writer.addAttribute("rel", t.getName());
writer.addAttribute("href", config.getApplicationPath() + t.getUri());
writer.addAttribute("xmlns:atom", "http://www.w3.org/2005/Atom");