addAttribute(workAttrs, ID_ATTR_NAME, getXmiId(addr));
// generate the XMI name for the type (uses a precomputed array so we don't
// recompute the same name multiple times).
int typeCode = cas.getHeapValue(addr);
XmlElementName xmlElementName = xmiTypeNames[typeCode];
// Call special code according to the type of the FS (special treatment
// for arrays and lists).
final int typeClass = classifyType(typeCode);
switch (typeClass) {