elem.addContent(outputElem);
}
public WorkflowOutputReference readRef(Element elem) throws IOException {
Element taskElem = elem.getChild("task");
if (taskElem == null)
throw new MissingElementException("task", elem);
int taskIndex = Integer.parseInt(taskElem.getText());
Element outputElem = elem.getChild("output");
if (outputElem == null)
throw new MissingElementException("output", elem);
String outputName = outputElem.getText();
return new WorkflowOutputReference(taskIndex, outputName);
}