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