val = activity.description();
maybeAddTextNode(description, val);
Collection assignments = activity.assignments();
Iterator assignmentIterator = assignments.iterator();
while (assignmentIterator.hasNext()) {
Assignment assignment = (Assignment) iterator.next();
WfResource resource = assignment.assignee();
SOAPElement assignee = activityNode.addChildElement("Assignee",
Consts.WFXML_PREFIX);
val = resource.resourceName();
if (val == null) {
assignee.addTextNode(resource.resourceKey());