* @param diskStorePath disk path to store data in
* @return a fully initialized store
*/
public static DiskPersistentStore create(Cache cache, String diskStorePath) {
CacheConfiguration config = cache.getCacheConfiguration();
DiskPersistentStorageFactory disk = new DiskPersistentStorageFactory(cache, diskStorePath);
DiskPersistentStore store = new DiskPersistentStore(disk, config);
cache.getCacheConfiguration().addConfigurationListener(store);
return store;
}