String db = String.valueOf(properties.get(DB));
int cache = Integer.parseInt(String.valueOf(properties.get(CACHE)));
mongo = new Mongo(host, port);
SegmentCache sc = new SegmentCache(cache * MB);
store = new MongoStore(mongo.getDB(db), sc);
cacheStatsReg = registerMBean(new OsgiWhiteboard(context.getBundleContext()), CacheStatsMBean.class,
sc.getCacheStats(), CacheStatsMBean.TYPE, sc.getCacheStats().getName());
}