String dbFile = new File(getAbsoluteRootDir(), getFileName(bundle)).getPath();
if (persistenceServices.containsKey(dbFile)) {
return persistenceServices.get(dbFile);
}
new File(dbFile).mkdirs();
PersistenceService bundleService =
new DefaultPersistenceService(new File(dbFile), new DefaultObjectPersistenceBackend(bundle),
new DefaultPersistenceIndex(new File(dbFile), new DefaultObjectPersistenceBackend(bundle)));
persistenceServices.put(dbFile, bundleService);
return bundleService;
}