TraversalContext tc = new SimpleTraversalContext();
MimeTypeDetector.setTraversalContext(tc);
DBContext dbContext = getDbContext(configMap);
TraversalContextManager traversalContextManager =
new TraversalContextManager();
traversalContextManager.setTraversalContext(tc);
RepositoryHandler repositoryHandler =
RepositoryHandler.makeRepositoryHandlerFromConfig(dbContext,
traversalContextManager);
return new DBSnapshotRepository(repositoryHandler);
}