private final XmlObject instance;
private final TestResultType data;
public ResultBuilderImpl(String benchmarkId, String benchmarkVersion, URI uri) {
TestResultDocument doc = TestResultDocument.Factory.newInstance();
instance = doc;
data = doc.addNewTestResult();
data.setId(generateTestResultId(benchmarkId));
data.setVersion(benchmarkVersion);
TestResultType.Benchmark node = data.addNewBenchmark();
node.setHref(uri.toASCIIString());
}