instance = doc;
data = doc.getBenchmark().addNewTestResult();
}
public void appendTailoring(SourceContext tailoring) {
TailoringType node;
try {
node = tailoring.getSourceContent().getXmlBeansInstance().getXmlObjectAsType();
} catch (XmlException e) {
throw new RuntimeException(e);
} catch (IOException e) {
throw new RuntimeException(e);
}
TailoringReferenceType tailoringFile = data.addNewTailoringFile();
tailoringFile.setId(node.getId());
tailoringFile.setHref(tailoring.getUri().toASCIIString());
tailoringFile.setVersion(node.getVersion().getStringValue());
tailoringFile.setTime(node.getVersion().getTime());
}