*/
private PersistenceManager createPersistenceManager(
File homeDir, FileSystem fs, PersistenceManagerConfig pmConfig)
throws RepositoryException {
try {
PersistenceManager pm = pmConfig
.newInstance(PersistenceManager.class);
PMContext pmContext = new PMContext(
homeDir, fs,
context.getRootNodeId(),
context.getNamespaceRegistry(),
context.getNodeTypeRegistry(),
context.getDataStore(),
context.getRepositoryStatistics());
pm.init(pmContext);
return pm;
} catch (Exception e) {
String msg = "Cannot instantiate persistence manager " + pmConfig.getClassName();
throw new RepositoryException(msg, e);
}