protected void writeTaskRefs(List<TaskRef> taskRefs, Element parent,Document document) {
Element taskRefsElement = Util4JAXPSerializer.addElement(document,parent, TASKREFS);
Iterator<TaskRef> iter = taskRefs.iterator();
while (iter.hasNext()) {
TaskRef taskRef = iter.next();
Element taskRefElement = Util4JAXPSerializer.addElement(document,taskRefsElement, TASKREF);
taskRefElement.setAttribute(REFERENCE, taskRef.getReferencedTask().getId());
}
}