private PersistenceManager createPersistenceManager(
File homeDir, FileSystem fs, PersistenceManagerConfig pmConfig)
throws RepositoryException {
try {
PersistenceManager pm = pmConfig.newInstance(PersistenceManager.class);
pm.init(new PMContext(
homeDir, fs,
context.getRootNodeId(),
context.getNamespaceRegistry(),
context.getNodeTypeRegistry(),
context.getDataStore()));