Path destinationPath = executionContext.getValueFactories().getPathFactory().createRootPath();
InputStream xmlStream = getClass().getResourceAsStream("/tck/repositoryForTckTests.xml");
graph.importXmlFrom(xmlStream).into(destinationPath);
graph.createWorkspace().named("otherWorkspace");
}
} catch (Exception ex) {
// The TCK tries to quash this exception. Print it out to be more obvious.
ex.printStackTrace();
throw new IllegalStateException("Failed to initialize the repository with text content.", ex);