protected org.jdom.Element encodeSuper (WorkItem wi) throws CodingException { final org.jdom.Element elt = new org.jdom.Element(WORKITEM, XMLNS); if (wi.getLastModified() != null) WicUtils.setAttribute(elt, LAST_MODIFIED, wi.getLastModified()); // // attributes org.jdom.Element as = new org.jdom.Element(ATTRIBUTES, XMLNS); org.jdom.Element smap = encodeAttribute(wi.getAttributes()); if (smap != null) as.addContent(smap); elt.addContent(as); // // the end return elt; }