.getPriority().toString()));
activityDataEl.setAttribute(new Attribute("uniqueId", ""
+ data.getUniqueId()));
activityDataEl.setAttribute(new Attribute("displayName",
displayName));
DataReference dataRef = data.getDataReference();
Element dataRefEl = new Element("dataReference");
dataRefEl.setAttribute(new Attribute("referenceClass", dataRef
.getReferenceClass().getName()));
dataRefEl.setAttribute(new Attribute("referenceId", ""
+ dataRef.getReferenceId()));
activityDataEl.addContent(dataRefEl);
for (Map.Entry<String, ActivityData.Entry> indexedEntry : data
.getIndexedEntries().entrySet()) {
String index = indexedEntry.getKey();
ActivityData.Entry entry = indexedEntry.getValue();