NamespaceRegistry nsReg,
NodeTypeRegistry ntReg)
throws RepositoryException {
try {
PersistenceManager pm = (PersistenceManager) pmConfig.newInstance();
pm.init(new PMContext(homeDir, fs, rootNodeUUID, nsReg, ntReg));
return pm;
} catch (Exception e) {
String msg = "Cannot instantiate persistence manager " + pmConfig.getClassName();
throw new RepositoryException(msg, e);
}