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(),