List<Assignment> assignments = new LinkedList<Assignment>();
while(subNode != null){
org.w3c.dom.Node ssubNode = subNode.getFirstChild();
String from = ssubNode.getTextContent();
String to = ssubNode.getNextSibling().getTextContent();
assignments.add(new Assignment("XPath", from, to));
subNode = subNode.getNextSibling();
}
workItemNode.addInAssociation(new DataAssociation(
source,
dataInputs.get(target), assignments, null));