private Mongo mongo;
@Override
public Repository[] setUpCluster(int n) throws Exception {
Repository[] cluster = new Repository[n];
stores = new FileStore[cluster.length];
mongo = new Mongo(host, port);
for (int i = 0; i < cluster.length; i++) {
stores[i] = new MongoStore(mongo.getDB(unique), cacheSize);
Oak oak = new Oak(new SegmentNodeStore(stores[i]));
cluster[i] = new Jcr(oak).createRepository();
}