defaultJCRImplClass = JcrRepositoryFactory.class.getName();
}
public void registerNodeTypesFromCndFile(String cndFileName, Session session, Workspace workspace)
throws RepositoryException {
CndNodeTypeReader reader = new CndNodeTypeReader(session);
try {
reader.read(cndFileName);
workspace.getNodeTypeManager().registerNodeTypes(reader.getNodeTypeDefinitions(), false);
} catch (IOException e) {
throw new RepositoryException("Registering node types for repository failed.", e);
}
}