}
RepositoryImpl repository = RepositoryImpl.create(config);
try {
createSourceContent(repository);
} finally {
repository.shutdown();
}
NodeStore target = new KernelNodeStore(new MicroKernelImpl());
RepositoryUpgrade.copy(source, target);
targetRepository = new Jcr(new Oak(target)).createRepository();
}